Giter Club home page Giter Club logo

lightword's People

Contributors

andreiluca avatar dgw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lightword's Issues

Nested menus don't render properly in LightWord 2.0.0.4

On Lightword 1.9.x I had a custom menu at the top of the site. I have one page, many top-level categories. Several of the top-level categories have sub-categories.

In the WP admin editor it looks something like this, where PX is a page, CX a category and CX-Y a subcategory.

P1
C1
C2
C2-1
C2-2
C2-3
C3
C3-1
C3-2
C3-3
C4

On LW 1.9.x this worked fine. Since upgrading to 2.x, the menu stops rendering everything after the first indent. In the above example, you wouldn't see C3 or its subcategories, nor C4.

If you move C3 so that it follows C1, it would appear but then C2 would dissapear. Starting again from the above, if you move C4 to follow C2 then it will appear in the menu, but C3 will still be missing.

I applied the patch suggested in your tweet (d719eca) and it helped, but didn't fix things.

To expand on the example I gave above, my exact menu is this:

A
B
C
+C1
+C2
+C3
+C4
+C5
+C6
+C7
+C8
+C9
D
+D1
+D2
+D3
+D4
+D5
+D6
E
+E1
+E2
+E3
+E4
F
+F1
+F2
G
H
+H1
+H2
+H3
+H4

With the fix applied, all the menus up to G appear on the top bar. H is missing. This happens to be the width of the page, but if I recall correctly LightWord 1.x wrapped the menus to a second row.

If I swap G and H, then H appears and G dissapears.

The bigger issue is that the sub-menus for C and D work properly, but E F just show the top-level, not the sub-categories. If I swap G and H around so that H renders the top-level category, it also fails to render subcategories.

I've looked at the generated source and things look fine in that there are no syntactic or structural differences between the submenus of C and D and the submenus of E, F or H.

I have uploaded the menu div section to https://s3-eu-west-1.amazonaws.com/nadtmisc/lightword_2_menu_bug_div.html if you want to take a look at it. Let me know if I can provide further config information to help debug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.