• Hi,
    I have the following setup:
    [cmwizard menu=2 title=”cmw” branch=current depth=2 ancestors=1 siblings=1 contains_current=”menu”/]

    This outputs:

    ABC
    -am1
    -am2
    –bmm1
    –bmm2
    -am3

    Now when I am on bbm1 I see this menu:
    ABC
    -am1
    -am2
    –bmm1
    –bmm2
    -am3

    But it’s not showing the subpages of bbm1.

    What do I need to change?
    Thanks.

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

    (@wizzud)

    Your setup is asking for :
    "the current item and its immediate children, plus its siblings, and its ancestors back to root level"
    You have shown me 2 outputs … and they are exactly the same as each other.
    Neither of those outputs contains a “bbm1” item … which is confusing.
    The first output doesn’t tell me which page you’re on that produces that output. And for the second one you’ve given me a page that isn’t in the output.

    If I assume that the output you’ve shown is an accurate reflection of (at least part of) your menu#2 structure – ie. menu#2 has a root-level item ABC, ABC has 3 child items (am1, am2 & am3), am2 has 2 child items (bmm1 & bmm2) – then the output shown, with the configuration you’ve supplied, is what I would expect to see if am2 was the current item.
    If any other item was the current item – ABC, am1, am3, bmm1, or bmm2 – then CMW would/should not produce that output, for that menu, using that configuration.

    So…
    What is the actual menu structure of menu#2?
    Where does the “bbm1” item fit in?
    What page produces the first output you’ve given?
    Does the output ever vary (depending on which page you’re on)?
    Is the output actually being produced by CMW?
    Do you have a web-accessible site that I can look at this on?

    Thread Starter GATHH

    (@golfasian)

    Thanks for oyur fast reply.
    Sorry, I was not clear before.
    One more time.

    I am on a page called bmm1 and this is the menu I see:

    ABC
    -am1
    -am2
    – -bmm1
    – -bmm2
    -am3

    How can I make sure that I also see the subpages of bmm1 when I am on bmm1 page?

    Thanks.

    Plugin Author wizzud

    (@wizzud)

    With this configuration…

    
    [cmwizard menu=NN title=”cmw” branch=current depth=2 ancestors=1 siblings=1/]

    (I’ve left out contains_current="menu" because it has no effect here)
    …you should not be seeing either am1 or am3 if you are on bmm1 (because neither of them is either a sibling or ancestor of bmm1).

    You’ve answered one of my questions: “bbm1” should be “bmm1”. Any response to the others?

    Thread Starter GATHH

    (@golfasian)

    Hello,
    Thanks for the reply.

    Actually we want to replicate the menu behaviour of this page here:
    https://www.golfasian.com/golf-courses/thailand-golf-courses/chiang-mai/chiangmai-inthanon-golf-resort/

    Hope this is now clear ??

    Thread Starter GATHH

    (@golfasian)

    Thread Starter GATHH

    (@golfasian)

    I think I got it:

    [cmwizard menu=2 title=”cmw” branch=current ancestors=3 ancestor_siblings=-3 include_level=”1″ siblings=1/]

    Plugin Author wizzud

    (@wizzud)

    Hope this is now clear

    No, not really.
    That – and the subsequent example – tells me what you are aiming for … which is easily achievable.
    What it doesn’t do is give me any clues as to why you seem to be having such a problem getting there!

    If CMW is a suitable choice of widget – and I have seen nothing in terms of menu structure to indicate whether it is or isn’t – then the configuration you have set should do what you want. But the output you are showing me does not seem to relate back to the CMW configuration, and you aren’t giving me enough information for me to be able to help! At the moment, I can’t even be sure that the output you’ve show me actually comes from a CMW instance!

    Plugin Author wizzud

    (@wizzud)

    Okay, good.
    (posting at the same time!)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not showing subpages’ is closed to new replies.