Quote from: ottogal at Nov 18, 2008, 09:13 AM
For beginners the following remarks may be helpful to understand Wayfinder placeholders.
etc...
Thank you for posting that, it was quite helpful to me.
I am brand new to Modx (and cms’s in general actually, I always built my own admin pages before, but this is wayyyy better
) and this helped me understand a couple of things which had stumped me.
However, I am wondering if anyone has any reading tips on hiding and un-hiding subitems in the menu, and things like that? Tutorials or whatnot which might go into a bit more depth on constructing a wayfinder-compatible expanding menu from scratch - not so much the fancy JS powered ones, although they are very nice, just a pure CSS one from the beginning?
I have put one together myself, and whle it works nicely, it seems a bit convoluted and inelegant; I’m sure there are cleaner ways to do it.
I will mention what I did, in case it matters:
basically the css class for the third <ul> into a constructed menu is hidden by default, and I use parentHereClass to add a class which has display:block...
so specifically, how can I avoid doing
.navigation ul li ul li ul li{
display:none;
}
.navigation .selected{
display:block;
}
??
It’s that first one that gets me... it just seems funky somehow. The kind of code that flies apart under stress leaving little bits of markup shrapnel...
And since it’s my first post, thanks to all for such a good forum.
I hope I can return the favour of help to another newbie some day soon.