My SellerDeck Account | Newsletter | Free Trial

Community and Knowledge Base

  #1  
Old 08-Aug-2017, 12:20 PM
graphicz's Avatar
graphicz graphicz is offline
Registered User
Join Date: May 2007
Full Name: Jonathan Chappell
Posts: 725
Thanks: 58
Thanked 92 Times in 72 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
Reply With Quote
  #2  
Old 08-Aug-2017, 05:17 PM
NormanRouxel's Avatar
NormanRouxel NormanRouxel is offline
Registered User
Join Date: Dec 2002
Full Name: Norman Rouxel
Posts: 10,752
Thanks: 9
Thanked 734 Times in 617 Posts
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 07:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.