Gossamer Forum
Quote Reply
Change Paging logic
I want to control the navigation mechanism (paging) of Links
to show the user any link from any category when the NEXT button (or new More link) is clicked.
And since I have Links set to show one link per page (controlled from the setup in admin),
then in this way I should be able to show whatever links I want to show to user regardless
if he/she is in the same category or in a different category.
Therefore, I want to create different include files for different categories, and in this file, the
new navigation order will be placed, and based on the selected navigation file, the order
of navigation (paging) is determined (regardless of what category the user is in).

So, I want to translate this logic to actual code that I can use.. any help is greatly appreciated.

Code:

/* this is the include file in the new category template of the targetted category */
if categoryID ==12
include paging_link_15;
elseif categoryID ==14
include paging_link_17;
elseif categoryID == 36
include paging_link_55;
else
include paging_link_00;
endif;

/* paging_link_15 file */
/* this is the paging_link_15.html file that I should have in templates directory */
/* Assign the NEXT button of the Paging in this order */
/* Or create a completely new navigation link on the category_new.html */
/* template to allow the navigation based on this order */
/* as I want to control what links (from any category) should appear next */
g=4%2Findex.html;d=1
g=6%2Fmore3.html;d=1
g=9%2Fmore12.html;d=1
g=5%2Fmore5.html;d=1
g=2%2Fmore6.html;d=1
g=8%2Fmore22.html;d=1
g=5%2Fmore77.html;d=1
g=6%2Fmore3.html;d=1

Regards...
Mark