Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3-templavoila] FCE with list within the typo3-project-templavoila@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi list! I'm trying to create an FCE which, amongst other tings, creates a simple list: <ul> &...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
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? _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#2
|
|||
|
|||
|
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? _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-templavoila] Mapping a dl/dt/dl list... | mark schoenbaechler | typo3-project-templavoila@lists.netfielders.de | 2 | 19.03.2007 09:06 |
| [TYPO3-templavoila] Multilingual FCE select list in Frontend | David Lanier | typo3-project-templavoila@lists.netfielders.de | 2 | 16.03.2007 16:15 |
| [TYPO3-shop] how to list related products in list view - LIST code | typo3-project-tt-products@lists.netfielders.de | 0 | 18.12.2006 17:19 | |
| Re: [TYPO3-templavoila] List of modifications for TemplaVoila | Franz Koch | typo3-project-templavoila@lists.netfielders.de | 4 | 15.12.2006 09:05 |
| Re: [TYPO3-dev] List of modifications for TemplaVoila | Martin Kutschker | typo3-dev@lists.netfielders.de | 4 | 04.12.2006 11:23 |