The Starter Guide section about BlockIf's would be worth reading.
Announcement
Collapse
No announcement yet.
How do i display Top-Level Sections list on home page
Collapse
X
-
Done this now what i did was split my section list up here http://kb.actinic.com/activekb/quest...ion+list+up%3F
Then i added the following code into my design
<p> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e" >
<div align="center">
<actinic:block type="TopLevelSectionList" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List%201%22" >
<actinic:variable name="SectionLink" value="Image Above Section Link"/></actinic:block>
</actinic:block>
</div>
</actinic:block>
</p>
Comment
-
Excellent, this is exactly what I want to do.
I've inserted the code and it's all working well EXCEPT the new section lists aren't inheriting the formatting.
My original was Top Level Section List with Horizontal Dividers. How do I change the code given in the kb to use that?
Code:<actinic:block type="TopLevelSectionList" > <actinic:block if="%3cactinic%3avariable%20nam%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List%201%22" > <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" > <actinic:variable name="SectionPageName" /> </actinic:block> <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" > <actinic:variable name="SectionURL" /> </actinic:block>" class="product_section"> <Actinic:Variable Name="SectionName"/> </a> <br /> </actinic:block> </actinic:block>
Code:<actinic:block if="%3cactinic%3avariable%20name%3d%22IsSectionIncludedInSiteMap%22%20%2f%3e" > <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" > <actinic:variable name="SectionPageName" /> </actinic:block> <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" > <actinic:variable name="SectionURL" /> </actinic:block>" class="product_section"> <Actinic:Variable Name="SectionName"/> </a> </actinic:block>
So, I pasted the first code (less the block type=TopLevelSectionList) part in and it successfully limited the sections in the original list, but left loads of blank spaces. Even if this did work, I'd have to create a second top level list, which is no hardship, but I wouldn't want all the blank spaces. I'm clearly being thick and missing something pretty basic, but could someone give me a clue? Thanks
2. Also, the new layouts don't appear in the design tree. Is there a way to make that happen? Or will it occur automatically when the format is sorted?
3. Finally, is it easy to strip out the UnregCustomersAreNotAllowed stuff? I may eventually have logins, but will never force customers to register.
Comment
-
For the time being, I've hard coded everything, a la:
Code:<p class="text_heading_left_column">Patterns by Designer</p> <div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div> <actinic:block type="TopLevelSectionList" > <ul class="products"> <actinic:block if="%3cactinic%3avariable%20name%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List1%22" > <li> <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" > <actinic:variable name="SectionPageName" /> </actinic:block> <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" > <actinic:variable name="SectionURL" /> </actinic:block>" class="product_section"> <Actinic:Variable Name="SectionName"/> </a> <br /> </li> <div class="dotted_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div> </actinic:block> </ul> </actinic:block> <div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div>
Comment
-
Karla,
Typo in your second line of code (from first block):
Code:<actinic:block if="%3cactinic%3avariable%20nam%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List%201%22" >
Code:<actinic:block if="%3cactinic%3avariable%20name%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List%201%22" >
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
I don't understand what you're asking.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
Comment