• Resolved Zwerg-im-Bikini

    (@zwerg-im-bikini)


    Thank you for your wunderful plugin. I have one question:

    The root items should always show up, but the children should only show for the current branch. All the other children should be hidden. Is this possible?

    To explain it clearer this is the whole structure of my pages:

    Home
    Page 1
    – Page 2
    – Page 3
    Page 4
    – Page 5
    – Page 6

    When I am on the front page I want the menu to look like this (this already works):

    Home
    Page 1
    Page 4

    When I am on page 1, 2 or 3 I want it to look like this:

    Home
    Page 1
    – Page 2
    – Page 3
    Page 4

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wizzud

    (@wizzud)

    Yes.

    Equivalent shortcode resembles…

    [cmwizard menu=N branch=current depth=1 include_level="1" siblings=1/]

    If you want the root items displayed even when the current page is not one of the pages contained within the menu then use an Alternative.

    Equivalent shortcode resembles…

    [cmwizard menu=N branch=current depth=1 include_level="1" siblings=1 alternative="no-current,menu"]depth=1[/cmwizard]

    Thread Starter Zwerg-im-Bikini

    (@zwerg-im-bikini)

    Thank you very much! It works now and I understand more about the settings.
    This is the final code I used:

    [cmwizard menu=2 branch=current depth=2 depth_rel_current=1 include_level="1" siblings=1 alternative="no-current,menu"]depth=1[/cmwizard]

    OK, I have the same question, but either these settings doesn’t work for me, or I’m missing something.

    My menu is a little different because I have a root branch. I have:

    Root
    -Parent A
    –Child A1
    –Child A2
    -Parent B
    –Child B1
    –Child B2
    -Parent C
    –Child C1
    –Child C2

    What I need is the basic “tree” flow. If I’m in any “A” it will show all “A”s plus the other Parents (hiding their children). If I’m in any “B” I would see all “B”s and the other parents (bot not their children).

    Is it possible?

    Also my code is never the same, there is always “+” or “-” in include_level:

    [cmwizard menu=12 branch=current depth=2 depth_rel_current=1 include_level="1+" siblings=1/]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide children which are not current’ is closed to new replies.