| View previous topic :: View next topic |
| Author |
Message |
zeev 2
Joined: 09 Feb 2007 Posts: 884
|
Posted: Tue Mar 09, 2010 7:15 am GMT Post subject: DYNAMIC_INCLUDE(PRODUCT_PREV_NEXT) |
|
|
It is not clear to me how to use this field and what it does.
I tried to place it on my product detail template and it is not doing anything. |
|
| Back to top |
|
 |
kris@searchfit 2
Joined: 20 Aug 2009 Posts: 32 Location: San Diego, CA
|
Posted: Tue Mar 09, 2010 12:41 pm GMT Post subject: |
|
|
The prev/next feature allows you to have a product show a previous and next link that will take the user to the products that come before and after that product in the current category. Here is an example of how to use it:
DYNAMIC_INCLUDE(PRODUCT_PREV_NEXT,
mainTemplate=<div><div style="float: left;">PREV_CONTENT</div><div style="float: right;">NEXT_CONTENT</div><div style="clear: both;"> </div></div>,
prevAltTemplate= ,
nextAltTemplate= ,
prevTemplate=<a href="PREV_URL">PREV_NAME</a>,
nextTemplate=<a href="NEXT_URL">NEXT_NAME</a>)
the arguments to pass are as follows:
mainTemplate = the template to use to show the links. This template can use the following variables: PREV_CONTENT and NEXT_CONTENT
prevAltTemplate = the html to use for the PREV_CONTENT variable in the main template when there is no previous product. (first product in a category)
nextAltTemplate = the html to use for the NEXT_CONTENT variable in the main template when there is no next product. (last product in a category)
prevTemplate = the html to use to make the link for the previous product. The following variables are available: PREV_URL and PREV_NAME
nextTemplate = the html to use to make the link for the next product. The following variables are available: NEXT_URL and NEXT_NAME
The reason for allowing html is so you can customize this for your design specifically and maybe use images for the links if you wanted. _________________ Kris Bailey
SearchFit |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6423 Location: Austin, TX
|
|
| Back to top |
|
 |
kris@searchfit 2
Joined: 20 Aug 2009 Posts: 32 Location: San Diego, CA
|
Posted: Tue Mar 09, 2010 12:44 pm GMT Post subject: |
|
|
No. If they do not provide arguments we do not output anything. _________________ Kris Bailey
SearchFit |
|
| Back to top |
|
 |
stanley@searchfit 2
Joined: 23 Jan 2003 Posts: 6423 Location: Austin, TX
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|