Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am using mega menus as my website's main navigation. I am loading 2nd level navigation into the mega menus with an xslt, "List Sub Pages from a Changeable Source". The xslt works just fine, but I am looking for a way to limit the number of items displayed so that the links do not run outside of the mega menu's boundaries.
The mega menu's height allows for 8 links to each column. I have a high number of 2nd level links (sometimes up to 30), so the xlst causes the list to run outside of the mega menu.
Is there a way to display segments of the xlst list?
The links in the image below are hard-coded, not called by xslt. If all of these links appeared in the same xslt list, they would obviously exceed the height of the mega menu.
Any help you can provide would be greatly appreciated!
You could use something like: <xsl:if test="position() mod 8 = 0 or position() = last()">
Reading this post could help you:
Thanks, Bas! That link did the trick for me. Works great!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted