Create a custom section with multiple child node levels
I am looking to create a custom section with multiple child node levels.
The custom section needs to display a list of retailers (select * from Retailer) Underneath each retailer I would like to display a list of stores (select * from Store where RetailerId = X)
Retailer > Store > Store Retailer > Store > Store
So far I have the below setup which displays all retailers. What do I need to do to display stores underneath a retailer in a custom section?
Create a custom section with multiple child node levels
I am looking to create a custom section with multiple child node levels.
The custom section needs to display a list of retailers (select * from Retailer)
Underneath each retailer I would like to display a list of stores (select * from Store where RetailerId = X)
Retailer
> Store
> Store
Retailer
> Store
> Store
So far I have the below setup which displays all retailers. What do I need to do to display stores underneath a retailer in a custom section?
Umbraco v 4.8.0
When attempting to edit my previous post I kept getting a xslt error so please use this reply as the main post instead.
The functionality I am trying to implement in the custom section is as follows
Below is the tree structure I am after
Retailers
> Retailer
>> Store
>> Store
> Retailer
>> Store
>> Store
>> Store
So far I have the below setup which displays all retailers and the related stores.
What do I need to do to be able to create Store nodes when right-clicking a Retailer node?
Umbraco v 4.8.0
Hi Sean
First of all you need to create a class that implements the ITask-interface e.g. a class named "RetailerTask".
I have used BaseTask from this tutorial as template.
Then you will have to tell Umbraco, that when you click on create it should direct the event to this class. This is configured in the UI.xml-file:
SITE\Umbraco\Config\Create\UI.xml
Add an entry that looks something like this:
<nodeType alias="stockist"> <header>Macro</header> <usercontrol>/Create/simple.ascx</usercontrol> <tasks> <create assembly="YOURASSEMBLY" type="RetailerTask" /> <delete assembly="YOURASSEMBLY" type="RetailerTask" /> </tasks> </nodeType>
is working on a reply...