Working on a Revo site, installing 2.0.8 and transferring over a lot of Revo 2.x content.
Menu on home page will be cluttered etc. if allowed to line break on its own etc.
How is it possible to??
1) specify where between menu items a line break should occur
2) specify the line height specifically for wayfinder menu items (horizontal list)
Could not find any forum or documentation items pertaining to line breaks.
Thank you, Tom
1 - if I understand what you are trying to do - you can use the &rowIdPrefix to create unique ids on each li and then target the appropriate id with some css
2 - this can be done with css to target a class set up with one of wayfinder’s parameters - maybe using &rowClass to target the li
-
☆ A M B ☆
- 24,524 Posts
The reason why that’s not really supported by Wayfinder is that Wayfinder generates a dynamic menu structure that is not dependent on a specific resource tree structure; if resources are added, removed, or moved it will generate the menu according to the latest modified structure. So saying "line break after the About Us item" wouldn’t work if you added or removed resources before About Us in the resource tree.
As whistlemaker suggests, I have on occasion used the &rowIdPrefix parameter to give each item a unique ID for very specific styling and positioning, but in at least one of these cases I’ve had to go in and repair the menu a time or two.
Yes targeting a specific li with css will break the wonderful feature of being to add/subtract/change your resource tree structure and have the menu just respond but I do not not know of any other way to do this, and in any case where the line break is will probably change....
As I am typing this I had a thought -
Why not use a second wayfinder call - each call would create one line of your menu. The call and your resource structure would determine the line breaks, the css would not have to change.
I have done something similar to my original suggestion in order to get different colors on menu tabs and yes was a minor annoyance to have recode the css a few times when the order of the menu changed, a new resource replaced an old one, and so on... but not too bad.
yes...two separate menu calls may work best...permits more customized menu display since each line can have custom sequence
unfortunately requires watchdogging the site, time will tell how well it works out etc.