Source code needed

General ShopSite user discussion

Source code needed

Postby VinceS » Wed Oct 01, 2014 2:02 pm

Where can I find the code behind the LINK function here
[-- LOOP LINKS PAGE.Columns --]
[-- LINK --]
[-- END_LOOP LINKS --]
VinceS
 
Posts: 134
Joined: Fri Apr 06, 2007 1:26 pm

Re: Source code needed

Postby loren_d_c » Wed Oct 01, 2014 2:43 pm

There is no access to the ShopSite source code available, but the code that is used in the loop (i.e. replaces the [-- LINK --] tag) comes from the [-- DEFINE LINK_TO_PAGE --] section of a product template.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Source code needed

Postby ShopSite Lauren » Wed Oct 01, 2014 6:15 pm

Correction to Loren's response, it is the [-- DEFINE LINK_TO_PAGE --] section of the PAGE template, and it is the page template of the page who's link it is.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Source code needed

Postby hadi » Wed Oct 01, 2014 9:51 pm

If I have products on a page that allows pagination, is there anyway to have verbiage i.e. that is in a Text or Page Field area that only shows up on the first or last page and NOT all the pages?
ADIL
hadi
 
Posts: 1
Joined: Wed Oct 01, 2014 9:41 pm

Re: Source code needed

Postby ShopSite Lauren » Thu Oct 02, 2014 8:24 am

What version of ShopSite do you have? There were new tags added somewhere in version 11 that would allow this. If you have version 11 or 12, the tags below should work for you:

[-- IF PAGE.PaginatedPageNum NE 0 --]
[-- IF PAGE.PaginatedPageNum "1" --]
text you want just on page 1 of a paginated page
[-- END_IF --]
[-- END_IF --]
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to User Forum

Who is online

Users browsing this forum: No registered users and 80 guests