Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Maarten Boer 61 posts 82 karma points
    Nov 01, 2010 @ 23:32
    Maarten Boer
    0

    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?

  • Tom Hare 49 posts 81 karma points
    Nov 02, 2010 @ 11:06
    Tom Hare
    0

    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

  • Maarten Boer 61 posts 82 karma points
    Nov 02, 2010 @ 18:31
    Maarten Boer
    0

    Hi Tom, is that on The forum or The umbraco site. I can't seem to find it. Maarten

  • Maarten Boer 61 posts 82 karma points
    Nov 03, 2010 @ 21:29
    Maarten Boer
    0

    Oops...found it.... thanks

    Found it and it works perfectly now...

     

    Maarten

  • Tom Hare 49 posts 81 karma points
    Nov 04, 2010 @ 15:41
    Tom Hare
    0

    Nice one - glad you got it sorted.

    Tom

Please Sign in or register to post replies

Write your reply to:

Draft