i have a variant where i simply want to include a managed navigation slot contained in a ul. when i drag this onto the workbench it complains with the following
Could not process the HTML file for querying. “tidy” has failed.
Missing closing tag for opening tag: start slot nav_TopPONew
if i replace my ul with a div, i don’t get the error message. however, i don’t want a div. ideally i don’t even want the ul, i just want the snippet code. full variant code below - can anybody explain this weird error.
I believe the ul tag should move after the start slot line if there is a possibility the list is ever empty to supress the UL (in our case that doesn’t happen).
but it is the insertion of the ul that causes tidy to complain. my snippet code produces an li. this snippet is allowed in a slot. i need to wrap the slot code in the ul.
if i omit the ul altogether rx somehow and for some reason inserts a ul with class=“noindent” around each li - this is not what i need - i need a single ul around the output of the slot.
If that’s the case then you may have to create a slot template. I would however think about making your snippet template more generic by removing the li and adding them to the slot markup.
i have tried this. The slot template is a navigation template. I have successfully put the ul in here. However, this template uses the PSOMutateSlotVariants function - and if i include the li in this template, rx refuses to perform the transformation. It does include the li and ul successfully but does not transform the variants.