Let me preface this by saying I am completely new to ShopSite and working through my first storefront.
The store in question can be found at: http://brotherscountrysupply.com/store/
I am having a hard time finding specifics in the forum, so I hope it's ok that I'm posting new topics.
I have ShopSite Pro and a LAMP stack for this store:
I am trying to work my way through a series of custom templates, and remove all the TABLE TAGS to replace them with DIVS or standard HTML wherever possible. I just made the following change to the loop links tag default from the cookbook:
- Code: Select all
[-- LOOP LINKS PAGE.Columns --]
------to------->
- Code: Select all
[-- LOOP LINKS --]
This was the only way that I could generate a list of links inline without <tr> tags. The results can be seen on my page, and I have read the help description - but I don't understand why the "[-- LOOP LINKS PAGE.Columns --]" adds the table tags. Is that something that is defined ahead of time within that command? Please excuse me if my terminology is way off...
The end result for what I was trying to get was this:
- Code: Select all
[-- IF PAGE.NumLinks 0 --]
[-- ELSE --]
<div class="GeneratedProductList">
Other pages and products you may wish to view:<br />
[-- LOOP LINKS --]
[-- LINK --] |
[-- END_LOOP LINKS --]
</div><!-- GeneratedProductList -->
[-- END_IF --]
If someone could also explain what this does in layman's terms, and why it's an if / else statement it would really help out as well.
- Code: Select all
[-- IF PAGE.NumLinks 0 --]
Thanks very much!