1 level relative to current level, not working as expected
-
Hi. After you helped me two days ago and I found that the problem wasn’t caused by CMW, I found the offending CSS code and removed it. However, now that I’ve done that I see that CMW isn’t working as expected!
As a temporary fix I can put in some CSS code to hide the levels I don’t want displayed. But I think it’s a bug, so wanted to show you.
Here’s my shortcode:
[cmwizard menu=3 branch=current start_at="2" depth=1 depth_rel_current=1 ancestors=2 ancestor_siblings=2 siblings=1 container_id="nav_menu-3"]
So I’m hiding the root item from this menu. And when I’m on a level 2 item, I expect to see the next level below it (1 level depth, relative to the current selection). But this isn’t happening. Instead it only shows the level 2 items, and no sub-items at all.
To get it to show the sub-items I changed it to this:
[cmwizard menu=3 branch=current start_at="2" depth=2 depth_rel_current=1 ancestors=2 ancestor_siblings=2 siblings=1 container_id="nav_menu-3"]
However this doesn’t solve my problem, because I actually only want the next level down to be showing. These are the current settings on the site – and with these settings, the menu now shows the full 2 levels deep of items (levels 2 & 3) instead of just the first level under root.It seems that the “level depth relative to current item”, when it is set to “1” it works for the root level, but not the second level.
Here is a PDF with screenshots of the shortcode and the assist screen:
https://www.duoplus.co.nz/share/CMWscreenshots2.pdfAnd I have also recorded a screen recording here – https://youtu.be/gca8o5krth4?hd=1
To view it in action visit: https://www.hamiltoneyeclinic.co.nz/patient-information/
(I haven’t put the CSS fix in yet, so you can see the problem. I’ll put the CSS fix in tomorrow.)I appreciate your guidance on this. Thanks.
- The topic ‘1 level relative to current level, not working as expected’ is closed to new replies.