You might need to use the tidy option, that should get rid of empty tags.
On Jul 27, 3:32 pm, Dave R <[email protected]> wrote: > Hey, I'm having a minor query issue in regards to the navigation > manager and I was wondering if any of you could help me with it. > > What I've got is a situation where I want to display all following > children except when the child is hidden. I actually have that part > working just fine, but when there is only one child page and it is a > hidden one, the code still contains a <ul> to hold the child pages. > This causes no problems for non-IE browsers, but IE renders the <ul> > with a minimum height of about 10px. I can't resolve the problem using > IE specific CSS because it would effect combinations of child pages > both shown and hidden. > > Anyway, I need help constructing a query that says the following: > > If Page has Children, check to see how many children. If the page only > has one child, check "switch_HideNav". If equals hide, do nothing, > otherwise... > > I'm not the strongest when it comes to this type of thing so any help > would be appreciate. > > For the record, here's the current code that I'm using: > > <reddot:cms> > <if> > <query > valuea="Context:CurrentPage.Elements.GetElement(switch_HideNav).GetHtml()" > operator="==" valueb="show"> > <if> > <query valuea="Context:CurrentIndex.Id" operator="==" > valueb="Context:LastIndex.Id"> > <htmltext> > <li class="lnavselected last"> > <div><a href="<%!! Context:CurrentIndex.GetUrl() !!%>">< > %!! Context:CurrentIndex.Headline !!%></a></div> > </htmltext> > <if><query valuea="Context:CurrentIndex.HasChildren()" > operator="==" valueb="Bool:True"> > <htmltext> > <ul class="tier3"> > <navigation:nextlevel> > </ul> > </htmltext> > </query></if> > <htmltext> > </li> > </htmltext> > </query> > <query type="else"> > <htmltext> > <li class="lnavselected"> > <div><a href="<%!! Context:CurrentIndex.GetUrl() !!%>">< > %!! Context:CurrentIndex.Headline !!%></a></div> > </htmltext> > <if><query valuea="Context:CurrentIndex.HasChildren()" > operator="==" valueb="Bool:True"> > <htmltext> > <ul class="tier3"> > <navigation:nextlevel> > </ul> > </htmltext> > </query></if> > <htmltext> > </li> > </htmltext> > </query> > </if> > </query> > <query type="else"> > <htmltext></htmltext> > </query> > </if> > </reddot:cms> > > Line 10 is where I need to place the query. -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
