Copied to clipboard

Flag this post as spam?

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


  • Tom Madden 253 posts 455 karma points MVP 4x c-trib
    Feb 25, 2009 @ 18:33
    Tom Madden
    0

    Grouping pages into a subnav, but without an intro page, going automatically to the first page

    Has anyone implemented this scenario before, and have any pointers, before I try and work it out myself?

    I've a grouping of pages where I will be showing the list of pages in that section. I've created pages under what would have been an intro page, and the intro page is in the main navigation. The client doesn't want the intro page, but wants to keep the grouping, so that when you navigate to the intro page you automatically go to the first page in the group. It's a bit like automatically going tot he most recent news article when you navigate to the News page, and the News page is never seen, though the content is likely to change infrequently once the site content is finalised.

    I can think of ways I could do this by simply changing the main navigation to be hard coded to link to the first item in each group and therefore have no navigation to the list page, but I wanted to do something less hard coded. Another CMS I used in the past had the content of a "Group" instead of a page which had this functionality.

    Any suggestions?

    Tom madden
    Quix Ltd

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 25, 2009 @ 20:05
    Dirk De Grave
    100

    Hi Tom,

    Can't you just use a redirect on the 'Group' page.

    - Create an extra property on the document type having alias = 'umbracoRedirect', of type content picker, or
    - Create an extra property on the document type having alias = 'umbracoInternalRedirectId', also of type content picker.

    Extra posts and links on the subject:

    http://forum.umbraco.org/yafpostst6611Counterpoint-to-umbracoUrlName.aspx
    http://www.mortenbock.dk/codegarden-08-hidden-gems-84.htm

    Regards,
    /Dirk

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 25, 2009 @ 21:12
    Peter Dijksterhuis
    0

    Tom,

    Another option is to create a macro that will get the first child-node (and render it the same as the child)
    In that case, always the first child will be shown.

    HTH,
    PeterD

  • Tom Madden 253 posts 455 karma points MVP 4x c-trib
    Feb 25, 2009 @ 21:30
    Tom Madden
    0

    Dirk,

    umbracoRedirect is perfect for this, thanks for that and the reference to the posts.

    Regards

    Tom

  • Tom Madden 253 posts 455 karma points MVP 4x c-trib
    Feb 25, 2009 @ 21:37
    Tom Madden
    0

    Peter,

    The macro also sounds a good idea, though I'll probably go for the umbracoRedirect option for it's simplicity.

    Regards
    Tom


Please Sign in or register to post replies

Write your reply to:

Draft