Closed (works as designed)
Project:
Bootstrap
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 May 2015 at 13:04 UTC
Updated:
3 Mar 2016 at 16:13 UTC
Jump to comment: Most recent
Comments
Comment #1
fredklopper commented+1
When rendering $secondary_nav multiple times the same thing happens.
Any solution?
Update: I think I should render it once and just print the rendered output multiple times ...
Comment #2
rolandoscott commentedyeah i'm getting the same thing on a mostly vanilla install, just installed the latest DEV version of bootstrap..
if you use render($primary_nav) or render($secondary_nav) you get a UL inside of a UL with the same classes, etc..
it makes theming a bit of a hassle.. any fixes available or any reason why this is like this?
Comment #3
markhalliwellComment #4
realgiucas commentedThis is an error.
As a result the page doesn't validate ( Element “ul” not allowed as child of element “ul” [...] )
As a workaround I solved copying $primary_nav in a new variable and then rendering each of the 2 variables only once