View Full Version : Creating Links to 'Previous' and 'Next' Sections
Hi, I will like have the NETQUOTEVAR:PREV_SECTION_NAME and NETQUOTEVAR:NEXT_SECTION_NAME to become be "back" and "next". I tried to replace them directly with back and next. But it return error when click back at the very first page and when click next at the last page of the section.
I pasted this on Act_productbody, some time the link will appear on top, but in product page, it appear on the bottom.
Any one know why is this so?
Thank is advance.
Kai
Can you post a URL so we can see the error and wrong positioning.
Ben
http://www.hst.com.sg/acatalog/Plain.html
This page is the first page of the section. By right it should not have the "back" once i replace "NETQUOTEVAR:PREV_SECTION_NAME" with back.
The next is no problem.
http://www.hst.com.sg/acatalog/shop.html
This page should not have any next and back.
http://www.hst.com.sg/acatalog/A172.html
Once it go to product page, the back, next is at the bottom.
I pasted my code on Act_productbody. Need assitance. Thank.
Menar
05-Sep-2003, 03:07 PM
Hi there,
Looking at your threads you have posted, it seems to me there appears to be problem in the coding or on the placement of the code where inserted.
I have embedded the code, as indicated from the Advanced User Guide, which results browsing through the 'previous' and 'next' section as designed.
I guess the problem is when embedding the code in the Act_Primary.html gets a little tricky.
My suggestion will be if you embed the following code in the Act_ProductBody.html (Advanced | Template Manager | Sections tab and by clicking on the ‘Body’ button if in the graphical view please click on the change view button.)
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="NETQUOTEVAR:PREV_SECTION_URL">NETQUOTEVAR:PREV_SECTION_NAME</a></td> <td align="right"><a href="NETQUOTEVAR:NEXT_SECTION_URL">NETQUOTEVAR:NEXT_SECTION_NAME</a></td></tr>
</table>
After the line <div align="right"><a name="sectiontop">.
Save the file and then preview the site to see the outcomes. However, please note that the back button should not appear at the very first section you go into, but should appear from sections below the first.
Hope this helps.
Hi, I have no problem if the link is stick with the products or section. Problems started when i want to change the products or sections name to "Back" and "Next"
TiggyPig
08-Sep-2003, 06:37 AM
look at www.tiggpig.com
you mean like that?
Menar
08-Sep-2003, 08:27 AM
Hi there,
Problems started when i want to change the products or sections name to "Back" and "Next"
I have been successful in changing the links to browse 'back' and 'next' between section(s) by changing the following areas in red;
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="NETQUOTEVAR:PREV_SECTION_URL">NETQUOTEVAR:PREV_SECTION_NAME </a></td> <td align="right"><ahref="NETQUOTEVAR:NEXT_SECTION_URL">NETQUOTEVAR:NEXT_SECTION_NAME </a></td></tr>
</table>
Changing NETQUOTEVAR:PREV_SECTION_NAME to be 'Back' and NETQUOTEVAR:NEXT_SECTION_NAME to be 'Next'.
Hope this gives you a better understanding in what you are trying to achieve.
Hi, I am aware that the text in red can be change, but the problem is the "back" will still be there on the first page of the section, and "next" on the last page. Have u notice that?
Menar
08-Sep-2003, 10:45 AM
Hi there,
There seems to be a problem on your site and your coding, as I have not noticed the problem you have described. I am using the same code from the Advanced User Guide with the first section only displaying the 'Next' link and the last section only displaying the 'Back' link.
My only suggestion will be to replace the template you have embedded the code in and then try again by inserting the code in the template Act_ProductBody (Advanced | Template Manager | Sections tab and by clicking on the ‘Body’ button if in the graphical view please click on the change view button)
Menar
08-Sep-2003, 04:28 PM
Hi there,
I can see the problem that you are encountering, I believe I have a solution to remedy your problem.
What you will need to do is create three different 'Primary templates'. In the very first section, in the overall template or Act_Primary.html, embed the following code;
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><td align="right"><ahref="NETQUOTEVAR:NEXT_SECTION_URL"> NEXT </a></td></tr>
</table>
The for all the section in between the first and the last section use the code use another Act_Primary.html,
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="NETQUOTEVAR:PREV_SECTION_URL">BACK </a></td> <td align="right"><ahref="NETQUOTEVAR:NEXT_SECTION_URL">NEXT </a></td></tr>
</table>
and finally for the very last section use another Act_Primary.html and insert the following,
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="NETQUOTEVAR:PREV_SECTION_URL">BACK</a></td>
</table>
I hope this helps.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.