[TYPO3] Empty <ul> caused invalid XHTML

Kesit Barotoardi barotoardi at yahoo.com.sg
Tue Feb 5 09:06:36 CET 2008


Hi Christ,
I already tried:

lib.sub_nav 
= 
HMENU
lib.sub_nav.entryLevel 
= 
1
lib.sub_nav.1 
= 
TMENU
lib.sub_nav.1{
        wrap = <ul> | </ul>
  
  
  
  
 
NO 
= 
1
  
  
  
  
 
NO.wrapItemAndSub 
= 
<li 
id="top"> 
| 
</li> 
|*| 
<li> 
| 
</li> 
|*| 
<li 
id="bottom"> 
| 
</li>

  
  
  
  
 
ACT 
= 
1
  
  
  
  
  
  
ACT 
< 
.NO
  
  
  
  
  
  
 
ACT.ATagParams 
= 
id="sub_current"
 }
 

but it's not working either. Is it the same with your recommendation?

my HTML Template for sub navigation section is:

<div id="sub_nav">
    <ul>
      <li id="sub_top">.........</a> </li>
      <li><a href="#">..........</a></li>
    </ul>
    </div>


In templavoila, I mapped the sub_nav to <div id="sub_nav">
So I guess the <ul> </ul> is auto-generated by Typo3





<font face="Arial, Helvetica, sans-serif" size="1"><strong>Kesit    Barotoardi</strong>
   
   <em><font color="#666666">m:</font></em> <font color="#0033cc">+62 251 217 0671 </font>    |<font color="#666666"><em> <em><font color="#666666">skype:</font></em> <font color="#0033cc">kesit.barotoardi</font>    |<font color="#666666"><em> e:</em></font> <a rel="nofollow" target="_blank" href="mailto:barotoardi at yahoo.com.sg"><font color="#0033cc">barotoardi at yahoo.com.sg</font></a>
   
   <a rel="nofollow" href="ymsgr:sendIM?barotoardi">
 
Lawanggintung 77, Bogor 16133 - West Java - Indonesia
<span style="font-style:italic;">t/f: </span>+62 251 324 676
</font>


----- Original Message ----
From: Christopher Torgalson <bedlamhotel at gmail.com>
To: TYPO3 English <typo3-english at lists.netfielders.de>
Sent: Tuesday, 5 February, 2008 2:55:21 PM
Subject: Re: [TYPO3] Empty <ul> caused invalid XHTML

Hi,

On 
Feb 
5, 
2008 
8:48 
AM, 
Kesit 
Barotoardi 
<barotoardi at yahoo.com.sg> 
wrote:
> 
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>?



Well, 
it's 
difficult 
to 
say, 
since 
the 
code 
you've 
posted 
does 
not
include 
the 
ul...

However, 
if 
you 
get 
rid 
of 
it 
from 
wherever 
it 
is 
now, 
you 
can 
just
add 
this 
to 
your 
TS--it 
will 
not 
display 
if 
the 
menu 
is 
empty:

lib.sub_nav.1 
= 
TMENU..wrap 
= 
<ul>|</ul>



-- 
Christopher 
Torgalson
http://www.typo3apprentice.com/
_______________________________________________
TYPO3-english 
mailing 
list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english






      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com


More information about the TYPO3-english mailing list