Copied to clipboard

Flag this post as spam?

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


  • awm 187 posts 376 karma points
    Mar 11, 2009 @ 22:00
    awm
    0

    navigation and site structure

    First of all I'm using the navigation package from http://packages.maliciousthinktank.com/navdemo.aspx which I've managed to get working fine. The only problem is that I've seen people around the forums mention it's best to structure the site so that there's a 'home' node at the top, and then all other pages beneath this node.

    For example.. i have a site which should be:

    - Home
    - About
    - Contact
    - Articles
    -- Article Type 1
    -- Article Type 2

    etc..

    but since I've put all nodes beneath my home node it now looks like this:

    - Home
    -- About
    -- Contact
    -- Articles
    --- Article Type 1
    --- Article Type 2

    This is fine except a) I'm not sure why this is recommended and b) how do I include the home node within the navigation as it doesn't seem to allow this - I can only show children.

    I had a look at the XSLT to see if I could change it but it was pretty complex and I didn't want to screw it up. I did manage to hard code a

  • Home
  • item but this seems to be 'cheating' to me [-x :)

    So basically, can anyone explain to me why it's best to structure your site beneath a single node and also, how to fix my menu problem above?

    Thanks :)

Copy Link
  • sun 403 posts 395 karma points
    Mar 17, 2009 @ 09:15
    sun
    0

    $currentPage/ancestor-or-self::node[@level<2]

    Maybe this is you want

    Copy Link
  • Please Sign in or register to post replies

    Write your reply to:

    Draft