I have a template page with a 'main section div'.
This div has to be filled with the childpages. Each childpage becomes a paragraph in it's parent.
Something tells me this can be done with templates and macro's.
And yes...im a newbie
Any suggestions?
There is an XSLT template packaged with Umbraco that should enable you to do this. If you go to the Developer section, right-click XSLT Files and Create and then select 'List subpages from current page' from the dropdown menu then will create what it says - a list of subpages for the page the user is on. Leave the 'Create macro' box checked.
To get your desired paragraph spacing etc, you will then need to edit the HTML markup slightly but this should be self-explanatory.
Finally, include the macro in your template in the correct place.
How to show child pages in the current page
I have a template page with a 'main section div'. This div has to be filled with the childpages. Each childpage becomes a paragraph in it's parent. Something tells me this can be done with templates and macro's. And yes...im a newbie Any suggestions?
Hi Maarten,
There is an XSLT template packaged with Umbraco that should enable you to do this. If you go to the Developer section, right-click XSLT Files and Create and then select 'List subpages from current page' from the dropdown menu then will create what it says - a list of subpages for the page the user is on. Leave the 'Create macro' box checked.
To get your desired paragraph spacing etc, you will then need to edit the HTML markup slightly but this should be self-explanatory.
Finally, include the macro in your template in the correct place.
Hope this helps.
Tom
Hi Tom, is that on The forum or The umbraco site. I can't seem to find it. Maarten
Oops...found it.... thanks
Found it and it works perfectly now...
Maarten
Nice one - glad you got it sorted.
Tom
is working on a reply...