Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-21 16:47:43

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

what's the difference

Hello,

I have two site’s : http://www.tamarawobben.nl and http://test.tamarawobben.nl

On the test site the menu works good and on the offical site the menu works not good.
Both site’s have the same page template and the same forms.

Who can help me figure out why the menu on http://www.tamarawobben.nl does not work good.

Regards,

Roelof

Offline

#2 2008-09-21 17:51:52

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: what's the difference

Perhaps both sites don’t have the same articles.

PS. I’ve seen you open quite a few topics lately. All about the same menu. Would you mind keeping it all in one topic? That also makes it easier for people to help you, because most of the template stuff is already posted in those other topics.

Offline

#3 2008-09-21 18:33:32

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: what's the difference

HTML Tidy Firefox extension reports that one page have 10 errors and the other one have 7 errors, so there is definitely something different in your templates/forms, because the HTML output is different.
And, btw, some of those errors (bad HTML) are related to the code of the menu.

For example:

<li>
<a href="http://www.tamarawobben.nl/index.php#nogo">
jaar1
<!--[if IE 7]><!--></a><!--<![endif]-->
			<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>

That code really doesn’t make any sense at all, at least for me…
So, first step, validate your code.

This kind of post belong to the “Presentation” category, or as ruud said, to the other threads related to the menu you already opened.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2008-09-22 17:36:06

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

Re: what's the difference

oke,

I have made my test page valide according to the validator on www.w3c.org.
I have still one problem.

When i use the menu and on the place where the articles must be placed i have this :

<txp:if_section name=”“>
<txp:article_custom section=“voorpagina” form=“default” />
</txp:if_section>
<txp:if_section name=“article”>
<txp:article limit=“1” form=“dagboek” sort=“Posted asc” />
<txp:ob1_pagination firsttext=“Eerste” previoustext=“Vorige” nexttext=“Volgende” lasttext=“Laatste” liclass=“menu2” />
</txp:if_section>

<txp:if_section name=“gastenboek”>
<txp:sdr_guestbook section=“gastenboek” pagelimit=“6” form=“default” commentform=“guestbook_comments_form” articletitle=“Gastenboek” />
</txp:if_section>

<txp:if_section name=“contact”>
<txp:zem_contact to=“postmaster@tamarawobben.nl” />
</txp:if_section>

<txp:if_section name=”,article”>
<txp:else />
<txp:article /><!— this is for other sections than the front page or ‘article’ —>
</txp:if_section>

Now i get a error message that txp can’t find the article tag.
But it’s there.

Who can help me with this ?

Roelof

Offline

#5 2008-09-22 17:51:36

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: what's the difference

Which page has the error message?

Offline

#6 2008-09-22 18:34:07

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

Re: what's the difference

Hello,

Every page i want to see from the menu.

You can see it yourself at http://test.tamarawobben.nl

Roelof

Offline

#7 2008-09-22 18:44:33

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: what's the difference

Its hard to figure out what is your error because I don’t really know what you want to happen. I can tell you that this is calling a category:

http://test.tamarawobben.nl/?c=gastenboek

Not a section. That may be your error.

Edit: Should note that the above was taken from your menu here:

http://test.tamarawobben.nl/

Last edited by jstubbs (2008-09-22 18:45:11)

Offline

#8 2008-09-22 19:03:48

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

Re: what's the difference

roelof wrote:

<txp:if_section name="">
<txp:article_custom section="voorpagina" form="default" />
</txp:if_section>
<txp:if_section name="article">
<txp:article limit="1" form="dagboek" sort="Posted asc" />
<txp:ob1_pagination firsttext="Eerste" previoustext="Vorige" nexttext="Volgende" lasttext="Laatste" liclass="menu2" />
</txp:if_section>

<txp:if_section name="gastenboek">
<txp:sdr_guestbook section="gastenboek" pagelimit="6"  form="default" commentform="guestbook_comments_form" articletitle="Gastenboek" />
</txp:if_section>

<txp:if_section name="contact">
<txp:zem_contact to="postmaster@tamarawobben.nl" />
</txp:if_section>

<txp:if_section name=",article">
<txp:else />
<txp:article /><!-- this is for other sections than the front page or 'article' -->
</txp:if_section>

The notice is saying:

De modelpagina default heeft nog geen txp:article tag

1. That’s right, you only have <txp:article_custom /> on the front page (default template). And because what you call sections are in reality categories, and category lists always use the default page template (unless told otherwise), you get this notice also on category pages ‘gastenboek’, ‘jaar1’ etcetera.
2. Don’t worry, it’s only a notice, you do don’t have to have an article tag on your page. Set Production status to ‘live’ and the notice will go away :)
If this is the way you want it to work, you only have to change the if_section parts to if_category. Edit: wait, better is to change your menu links to /?s=article&c=zwangerschap&month=2005-02 etcetera.

Last edited by els (2008-09-22 19:18:56)

Offline

#9 2008-09-22 20:16:53

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: what's the difference

Els comes through to save us, yet again :-)

BTW – is that your dog Els? In your avatar?

Offline

#10 2008-09-22 21:32:15

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

Re: what's the difference

jstubbs wrote:

BTW – is that your dog Els?

Yep, one of them :)

Offline

#11 2008-09-23 06:00:28

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: what's the difference

Cute dog!

Offline

#12 2008-09-23 08:39:58

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

Re: what's the difference

Els,

Sorry, but i need your help one more time.
Everything works good now but in the menu there are 3 sublevels instead of 12.
Can you help me figure out why.

Roelof

Offline

Board footer

Powered by FluxBB