Hi Boris,
I have seen this before and tried the exact same thing. Store:Set is not
thread set, and not supported by support. For example, do a full site
publish, when multiple pages are being generated by multiple page builder
threads, they are saving to the same variable for in Store:Set, so you will
have a race conditional, pages getting wrong information from previously
saved data.
I would say use this code below and leave the empty UL handling to CSS or
Jquery.
> <reddot:cms>
> <if>
> <query
> valuea="Context:CurrentPage.Elements.GetElement(opt_PageHidden).Value"
> operator="!=" valueb="hidden">
> <htmltext>
> <li>
> <a href="<%!! Context:CurrentIndex.GetUrl() !!%>"><%!!
> Escape:HtmlEncode(Context:CurrentIndex.Headline) !!%></a>
> </htmltext>
> <if>
> <query valuea="Context:CurrentIndex.HasChildren()"
> operator="==" valueb="Bool:True">
> <htmltext>
> <ul>
> <navigation:nextlevel>
> </ul>
> </htmltext>
> </query>
> </if>
> <htmltext>
> </li>
> </htmltext>
> </query>
> </if>
> </reddot:cms>
>
JQuery solution:
<script>
// remove all UL without LI inside
$('ul').not(':has(li)').remove();
</script>
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.