Warning: Declaration of AuthRemote::doAuth($username, $password) should be compatible with AuthPriv::doAuth($username, $password, $remember = false, $md5 = true) in /home/merchant/public_html/KB/admin/lib/eleontev/Auth/AuthRemote.php on line 776
Page Groupings - MerchantMoms :: Knowledgebase
Search:     Advanced search

Page Groupings

You can "group" different pages together to appear in different areas of the site.

For instance, say you want to show the home page, "about us" page and contact page in tabs across the top of the page. Then down the left column you'd like to show the catalog page, wish list and wholesale links. And lastly, in a horizontal line across the bottom of the page, you'd like to show the affiliate page, search page and a page about your ordering policies.

What you'll do is to assign a "group" to each of these sections. For example, the first set of pages (the tabs) might be group 1, the second set (vertical listing down the left) is group 2, and the horizontal line at the bottom is group 3.

Now, when you access "Pages" in the administration area, edit each of those pages, and check the boxes next to "Page Groupings" to assign the page to that particular group. So in our example, the index page would have the check box in front of "Group 1" checked. The wish list is going to have "Group 2" checked. The search page will have "Group 3" checked. And so on.

Lastly, in your template use this format for the includes:

<script language="php">$pggrp = X;include("$Home_Path/$Inc_Dir/pagelist_horizontal.php");$pggrp = "";</script>

Version 2.71 would use

<script language="php">$pggrp = X;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_tabs.php");$pggrp = "";</script>

placing the X with the appropriate page group number.

So for links using our example grouping above you would use the following:

For the top tabs ( group 1 in our example) you would use:

<script language="php">$pggrp = 1;include("$Home_Path/$Inc_Dir/pagelist_tabs.php");$pggrp = "";</script>

version 2.71 would use

<script language="php">$pggrp = 1;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_tabs.php");$pggrp = "";</script>

For the vertical listing ( group 2 in our example ) you would use:

<script language="php">$pggrp = 2;include("$Home_Path/$Inc_Dir/pagelist_vertical.php");$pggrp = "";</script>

version 2.71 would use

<script language="php">$pggrp = 2;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_vertical.php");$pggrp = "";</script>

And for the horizontal bar at the bottom ( our group 3 ) you'd use:

<script language="php">$pggrp = 3;include("$Home_Path/$Inc_Dir/pagelist_horizontal.php");$pggrp = "";</script>

version 2.71 would use

<script language="php">$pggrp = 3;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_horizontal.php");$pggrp = "";</script>

You can set up to 5 page groupings per site.

Note that all pages can be set in any of these groups, allowing you to display links in multiple navigation areas.

Prev   Next
Template Includes for 2.71 & 2.81     Want to be template designer?