Display categories above content
To show the categories above the content in the home page, use one of the two methods below:
Method 1:
Create a separate template just for the home page. Then in the page template, add the code:
where you want the categories to be displayed. Or if you only have a single template for all pages, add the code:
to the template.
Method 2: Don't change the templates. Instead, open the content.php page in the /enc/ folder, and change the code to:
if ($dirname == "" AND $pgnm_noext == "index") { include("$Home_Path/$Inc_Dir/index.php"); } // Display content only upon first initial page startup if (($dirname == "pages" OR ($pg_type == "required" AND $pgnm_noext == "index") OR ($dirname == "" AND $_SERVER['REQUEST_METHOD'] == "GET" AND !$_SERVER['QUERY_STRING'])) AND $pg_content) { echo "$pg_content"; } // Show order page if order button if ($dirname == "go" AND $pgnm_noext != "itemlist") { include("$Home_Path/go/iframe.php"); } // Display include only for pages in main directory if ($dirname == "" AND $setpg == $catpg AND $pgnm_noext != "index") { include("$Home_Path/$Inc_Dir/catalog.php"); } else if (($dirname == "" AND $pgnm_noext != "index") OR ($dirname == "go" AND $pgnm_noext == "itemlist")) { include("$Home_Path/$Inc_Dir/$pgnm_noext.php"); } ?>NOTE: To display categories above content on the catalog.php page, change all references of "index" to "catalog" in the above modification. Then change the line:
if (($dirname == "pages" OR ($pg_type == "required" AND $pgnm_noext == "catalog") OR ($dirname == "" AND $_SERVER['REQUEST_METHOD'] == "GET" AND !$_SERVER['QUERY_STRING'])) AND $pg_content)to:if (($dirname == "pages" OR ($pg_type == "required" AND $pgnm_noext == "catalog" AND $_SERVER['REQUEST_METHOD'] == "GET" AND !$_SERVER['QUERY_STRING']) OR ($dirname == "" AND $_SERVER['REQUEST_METHOD'] == "GET" AND !$_SERVER['QUERY_STRING'])) AND $pg_content)