Announcement

Collapse
No announcement yet.

Displaying second and third level sections

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

    Displaying second and third level sections

    I am trying to only display the child subsections when I am in specific top level sections.

    Here is my example catalog and its sections...

    Code:
    top level section 1
    --->subgroup1
    ------->section 1 subgroup1
    ------->section 2 subgroup1
    ------->section 3 subgroup1
    
    top level section 2
    --->subgroup2
    ------->section 1 subgroup2
    ------->section 2 subgroup2
    ------->section 3 subgroup2
    --->subgroup3
    ------->section 1 subgroup3
    ------->section 2 subgroup3
    ------->section 3 subgroup3
    
    top level section 3
    --->subgroup4
    ------->section 1 subgroup4
    ------->section 2 subgroup4
    ------->section 3 subgroup4
    When someone is in the first top level section or one of its child sections, I would like the navigation to only display...

    Code:
    subgroup1
    --->section 1 subgroup1
    --->section 2 subgroup1
    --->section 3 subgroup1
    When someone is in the second top level section or one of its child sections, i would like the navigation to display...

    Code:
    subgroup2
    --->section 1 subgroup2
    --->section 2 subgroup2
    --->section 3 subgroup2
    subgroup3
    --->section 1 subgroup3
    --->section 2 subgroup3
    --->section 3 subgroup3
    What is the best way to only display the second and third section levels of navigation when I am in each different top level section or one of its child sections?

    Thanks.

    #2
    Your best way is probably buying an addon if you need to ask to be honest. It takes a bit of html, css and actinic knowledge to do, whereas an addon does that for you very cheaply.

    Comment


      #3
      Any recommended addons?

      To be honest, I know it is rather simple to implement directly from the design of the website. Perhaps I'll figure it out through posting some ideas a few times.

      Here is the basis so far...

      Code:
      <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200" >
      <actinic:variable name="SubSectionListTop" />
      </actinic:block>
      or something more legible...

      Code:
      block if (SectionLevel > 0)
           SubSectionListTop
      /block
      This allows you to only see the subsections from the respective top level sections, however if you go further down into the catalog, it will only show a section's subsections.

      Gotta check advanced user guide again...

      Comment


        #4
        Originally posted by kharri1073 View Post
        I am trying to only display the child subsections when I am in specific top level sections.



        Thanks.
        I did this for another site recently, use the php code that Gabe put on the site for navigation http://community.actinic.com/showthr...ight=gabes+nav you can use this and limit the display to do just what you need. No need to buy an addon

        Malcolm

        SellerDeck Accredited Partner,
        SellerDeck 2016 Extensions, and
        Custom Packages

        Comment


          #5
          Kevin - look at the ListIndex variable as this iterates for each instance in a list and can be easily incorporated into a Block if for simple counting functions


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            To display sections down from current section with Gabes Navigation use
            Code:
            <actinic:block php="true" selectable="false"> 
            MakeNav(<actinic:variable name="SectionID" />,3,0,<actinic:variable name="SectionID" />); 
            </actinic:block>

            Malcolm

            SellerDeck Accredited Partner,
            SellerDeck 2016 Extensions, and
            Custom Packages

            Comment


              #7
              Great, thanks guys. Ill have a crack at the suggestions and ill see which works better for the navigation.

              Comment

              Working...
              X