[TYPO3-templavoila] FCE with list

Florian Seirer florian.seirer at tirol.gv.at
Wed Jun 4 13:38:02 CEST 2008


Hm. I guess wrapping <li style="display:none;"></li> could help.
Allthough this would just be a dirty solution...


Florian Seirer schrieb:
> Hi list!
> 
> I'm trying to create an FCE which, amongst other tings, creates a simple 
> list:
> 
> <ul>
>   <li>Line 1</li>
>   <li>Line 2</li>
>   ...
> </ul>
> 
> This is my mapping:
> SC: UL (Inner)
> CO: LI (Outer)
> EL: LI (Inner)
> 
> This works quite well.
> 
> My problem is that TYPO3 always generates a <ul>...</ul>, even if there 
> are no list elements inside. This is invalid XHTML.
> 
> So how can I map/wrap this correctly? I was thinking about an OUTER 
> mapping of the UL tag and then use a wrap/ifEmpty or the like to create 
> the UL tag. But I haven't figured out how to do that with container 
> elements.
> 
> Any ideas?


More information about the TYPO3-project-templavoila mailing list