Announcement

Collapse
No announcement yet.

Children sections not just child sections

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Children sections not just child sections

    I would like to select from products of all the child sections of a top level section.
    Using the block Child Section List you only get the immediate children not the children of children.

    How can I show all the children of a top level section?

    This is what I have under each top level section:
    Code:
    <actinic:block type="ChildSectionList" >
    <actinic:block type="ProductList" >
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ShowAsMegaMenuProduct%22%20%2f%3e">
    <actinic:variable encoding="perl" value="forMMII" name="BestSellerItem" />
    </actinic:block>			
    </actinic:block>	
    </actinic:block>
    I really need instead of "<actinic:block type="ChildSectionList" >" something like 'all the children sections list'

    Please could anyone help?

    Thank you.
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    There doesn't seem to be an EntireChildSectionList (or at least it's not in the Advanced Guide).
    You could code repeated child section lists as deep as you expect the site structure to go. E,g, for 3 levels:
    Code:
    CHILDREN:<br>	
    <actinic:block type="ChildSectionList" >
    	<br>S:<actinic:variable name="SectionName" /> 
    	<actinic:block type="SectionEntireProductList" >
    		<br>&nbsp;&nbsp;P: <actinic:variable name="ProductName" />
    	</actinic:block>
    	<actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22ListCount%22%20%2f%3e">
    		<actinic:block type="ChildSectionList" >
    			<br>S:<actinic:variable name="SectionName" /> 
    			<actinic:block type="SectionEntireProductList" >
    				<br>&nbsp;&nbsp;<actinic:variable name="ProductName" />
    			</actinic:block>
    		</actinic:block>
    		<actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%20%3cactinic%3avariable%20name%3d%22ListCount%22%20%2f%3e">
    			<actinic:block type="ChildSectionList" >
    				<br>S:<actinic:variable name="SectionName" /> 
    				<actinic:block type="SectionEntireProductList" >
    					<br>&nbsp;&nbsp;<actinic:variable name="ProductName" />
    				</actinic:block>
    			</actinic:block>
    		</actinic:block>
    	</actinic:block>
    </actinic:block>
    P.S. Note that I'm using SectionEntireProductList. Just using ProductList won't show everything if the products in a section are paginated.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X