[TYPO3] Empty <ul> caused invalid XHTML
Mauro Lorenzutti
mauro.lorenzutti at webformat.com
Tue Feb 5 09:07:01 CET 2008
Hi Kesit,
> Hi friends,
> kind of need help here.
>
> I had problem on my Typo3 page due to invalid XHTML transitional.
> Failed validation was caused by empty <ul> of my level 2 navigation (there's no subpages under the page which I check for validation).
>
> This is my typoscript for sub navigation:
>
> lib.sub_nav = HMENU
> lib.sub_nav.entryLevel = 1
> lib.sub_nav.1 = TMENU
> lib.sub_nav.1{
> NO = 1
> NO.wrapItemAndSub = <li id="top"> | </li> |*| <li> | </li> |*| <li id="bottom"> | </li>
>
> ACT = 1
> ACT < .NO
> ACT.ATagParams = id="sub_current"
> }
>
> Is there anyway to erase the empty <ul>?
>
>
> Thanks before,
> kesit
>
it seems that you inserted this HMENU inside a <ul>. I suggest you to
remove the <ul> from your HTML template and to add the following TS code:
lib.sub_nav.1.wrap = <ul>|</ul>
this will prevent empty <ul>.
Regards,
--
Mauro Lorenzutti
e-mail: mauro.lorenzutti at webformat.com
---------------------------------------------------------
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
Tel +39-0427-926.389 -- Fax +39-0427-927.653
info at webformat.com -- http://www.webformat.com
---------------------------------------------------------
More information about the TYPO3-english
mailing list