Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-11 16:21:45

roelof
Member
Registered: 2005-03-27
Posts: 647

validation problem on a menu

Hello,

I have a menu on my website.
But when it’s valid the guestbook section is a sub of the “4e levensjaar”.
I can make it a first level by using a </ul> tag but then my menu is not valid anymore.

Who can help me figure out how to solve this.

You can see the menu part on http://tamara.tamarawobben.nl

Regards,

Roelof

Offline

#2 2008-11-11 17:14:09

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: validation problem on a menu

Can you post the code you are using to generate the menu?

Offline

#3 2008-11-11 17:17:30

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: validation problem on a menu

Hai Els,

Of course i can.

Here it is :

<div id="left">
<h4><span class="menu_first_letter">Navigation</span></h4>
<div class="menu">
<ul>
<txp:article_custom category="zwangerschap" sort="Posted ASC" limit=""39" listform="myform" />
</ul></li>
<txp:article_custom category="jaar1" sort="Posted ASC" limit="65" listform="myform" />
</ul></li>
<txp:article_custom category="jaar2" sort="Posted ASC" limit="999" listform="myform" />
</ul></li>
<txp:article_custom category="jaar3" sort="Posted ASC" limit="999" listform="myform" />
</ul></li>
<txp:article_custom category="jaar4" sort="Posted ASC" limit="999" listform="myform" />
</ul></li><ul>
<li><a href="?id=181">Gastenboek</a></li>
</ul></li></ul>
</div>

Roelof

Offline

#4 2008-11-11 17:30:31

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: validation problem on a menu

<div class="menu">
<ul>
<txp:article_custom category="zwangerschap" sort="Posted ASC" limit=""39" listform="myform" />
<txp:article_custom category="jaar1" sort="Posted ASC" limit="65" listform="myform" />
<txp:article_custom category="jaar2" sort="Posted ASC" limit="999" listform="myform" />
<txp:article_custom category="jaar3" sort="Posted ASC" limit="999" listform="myform" />
<txp:article_custom category="jaar4" sort="Posted ASC" limit="999" listform="myform" />
<li><a href="?id=181">Gastenboek</a></li>
</ul>
</div>

The “li” tags need to be in your form except for the guest-book one.

Last edited by thebombsite (2008-11-11 17:32:05)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2008-11-11 17:47:44

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: validation problem on a menu

thebombsite wrote:

The “li” tags need to be in your form except for the guest-book one.

I’m not sure that is what it needs, Stuart. I assume Roelof is using the if_different tag, and it’s not that simple to get opening and closing list tags working properly with if_different…

Roelof, it looks to me as if this part:

</ul></li><ul> (the line after your last article_custom tag) is not in the html output. Are you sure it’s on your page?

Offline

#6 2008-11-11 18:04:16

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: validation problem on a menu

Oh I see. You need a 4 year study course for <txp:if_different>. ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2008-11-11 18:18:21

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: validation problem on a menu

I see it in the html output :

bc.</ul></li><ul>
<li><a href=”?id=181”>Gastenboek</a></li>
</ul></li></ul>
</div>

Roelof

Last edited by roelof (2008-11-11 18:18:38)

Offline

#8 2008-11-11 18:49:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: validation problem on a menu

Are we looking at the same page? I see this:

<li>
<a href="http://test.tamarawobben.nl/?c=jaar4&amp;month=2008-09">september</a>
</li>

it should be here! but here is nothing ;)

<li><a href="?id=181">Gastenboek</a></li>
</ul></li></ul>
</div>

Offline

#9 2008-11-11 19:04:21

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: validation problem on a menu

Weird,

On my computer i see this :
bc. <li>
<a href=“http://test.tamarawobben.nl/?c=jaar4&amp;month=2008-09”>september</a>
</li>

</ul></li><ul>
<li><a href=”?id=181”>Gastenboek</a></li>
</ul></li></ul>
</div>

Roelof

Offline

#10 2008-11-11 19:08:21

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: validation problem on a menu

I am looking at this page you mentioned in your first post: http://tamara.tamarawobben.nl

Offline

#11 2008-11-11 19:19:36

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: validation problem on a menu

oke,

I see where the confusing comes from.
I took the menu from test.tamarawobben.nl en make this one valid.
When removing this line the menu was valid but i didn’t change the page template.

Roelof

Offline

#12 2008-11-11 19:27:13

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: validation problem on a menu

Ah I see :) What happens if you add another </ul> in that line you removed? So instead of </ul></li><ul> use </ul></li></ul><ul>.

Edit: that was wrong, I think you need

</ul></li>
<li><a href="?id=181">Gastenboek</a></li>
</ul>

Last edited by els (2008-11-11 19:33:27)

Offline

Board footer

Powered by FluxBB