Announcement

Collapse
No announcement yet.

Current Top level section ID or Name

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by shiver
    Hi Folk,

    The site using the the moded menu is at http://www.shhh-itsourlittlesecret.co.uk please be aware it does have adult products.

    If it's what your after let me know and I'll forward you the code, you will need to pop a custom var containing the section name in to the sub-section to show in the menu (very simple).

    Norman's example may pull out the section/sub-section relationship automatically.
    Phew.... see what you mean
    That's what I need ecxept that when you are in the subsection, I dont want to be able to see all the other parent sections, ie just the peer subsections at the same level as the on you are in. can it do this?

    I appreciate your help.

    Folk

    Comment


      #17
      Say you've got a menu tree like this:

      section1
      - subsection 1
      - subsection 2
      - subsection 3
      section2
      - subsection 1
      - subsection 2
      - subsection 3
      section3
      - subsection 1
      - subsection 2
      - subsection 3

      With the JavaScript we've used on the Shhh site you get the following;

      section1
      section2
      section3


      Unless you add in the section name into the susection via a customvar ie customvar in subsections = section 2

      section1
      section2
      - subsection 1
      - subsection 2
      - subsection 3
      section3

      you need to add it to ever subsection to show as open under the main section.
      Justin Rowe
      Shiver

      Comment


        #18
        Hi,
        section1
        section2
        - subsection 1
        - subsection 2
        - subsection 3
        section3

        might work for me although what would be better would be:

        section2
        - subsection 1
        - subsection 2
        - subsection 3

        But anyway... can you post/send the code with some simple instructions?

        Thanks

        Comment


          #19
          I've emailed you Folk.
          Justin Rowe
          Shiver

          Comment


            #20
            Does it do what im after, ie display the peer sections, ie when i'm in a child section i just want to be able to see other similar level sections in that parent section in the left hand bar?
            No. It simply demonstrates what the #1 post wanted to do. I.e. detect which top-level section the current page is a child off.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X