I am trying to present selected subsections in a table on the home page.
I created a variable for showing the section in the home page table then I started with a code Norman suggested a while ago for top level sections on the home page:
I adapted it thus:
As can be seen from the live test site http://www.graphicz.eu.com/site1/ There are lots of empty boxes corresponding with the list indices that are not selected. (The section dump (again c/o Norman) is at the bottom of the page.)
The issue seems to be around using the list index to create the new lines in the table but I tried making a selector along the lines of the home page best sellers list but ran into all sorts of coding errors (it didn't like the section variables). Please can anyone lay healing hands on this problem?
Thanks so much.
PS-Here is a screenshot of the content tree if that is of any help:
http://www.graphicz.eu.com/screenshot-sampleimages.jpg
I created a variable for showing the section in the home page table then I started with a code Norman suggested a while ago for top level sections on the home page:
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e"> <h2 class="clearall"><actinic:variable name="HomePageCatalogueTitle" /></h2> <table border="0" cellpadding="0" cellspacing="10" ><tr> <actinic:block type="TopLevelSectionList" > <td style="padding:5px; border:1px dotted silver; vertical-align:top;"> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsSectionIncludedInSiteMap%22%20%2f%3e%20AND%20%3cactinic%3avariable%20name%3d%22ShowInHomepageSectionList%22%20%2f%3e" > <actinic:variable name="SectionLinkHomePage" /> </actinic:block> </td><td><div class="best_selling_items_spacing"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div></td> <actinic:block if="%28%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%25%204%29%20%3d%3d%200" ></tr><tr></actinic:block> </div> </actinic:block> </tr></table> </actinic:block>
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e"> <h2 class="clearall"><actinic:variable name="HomePageCatalogueTitle" /></h2> <table border="0" cellpadding="0" cellspacing="10" ><tr> <actinic:block type="EntireSectionList" > <td style="padding:5px; border:1px dotted silver; vertical-align:top;"> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsSectionIncludedInSiteMap%22%20%2f%3e%20AND%20%3cactinic%3avariable%20name%3d%22ShowInExtraHomePageList%22%20%2f%3e" > <actinic:variable name="SectionLinkHomePage" /> </actinic:block> </td><td><div class="best_selling_items_spacing"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div></td> <actinic:block if="%28%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%25%204%29%20%3d%3d%200" ></tr><tr></actinic:block> </div> </actinic:block> </tr></table> </actinic:block>
The issue seems to be around using the list index to create the new lines in the table but I tried making a selector along the lines of the home page best sellers list but ran into all sorts of coding errors (it didn't like the section variables). Please can anyone lay healing hands on this problem?
Thanks so much.
PS-Here is a screenshot of the content tree if that is of any help:
http://www.graphicz.eu.com/screenshot-sampleimages.jpg
Comment