Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-10-06 18:21:37

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

Re: link problem

Hai Els,

What’s your opinion.
Or do you have another idea ?

Roelof

Offline

#14 2008-10-06 19:00:29

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

Re: link problem

roelof wrote:

The guestbook with section article or gastenboek and category gastenboek, displayed not.

What is the code on your page for this? And in which section is your gastenboek article?

Offline

#15 2008-10-06 19:21:00

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

Re: link problem

Hello Els,

I use the code on this page.
The section of the guestbook article is normally gastenboek but also article as section did not work.

Roelof

Offline

#16 2008-10-06 20:05:42

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

Re: link problem

Well, of course it doesn’t display then ;) There is no conditional for section ‘article’, nor for section ‘gastenboek’ (you only have <txp:if_section name=",default">). So you just have to add

<txp:if_section name="gastenboek">
<txp:article />
</txp:if_section>

or name="article", whatever section your gastenboek is in.

Offline

#17 2008-10-06 20:10:58

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

Re: link problem

Oke,

But i don’t understand why the articles on for example februari is displayed.
There are in the section article and that sectionn is also not in the page template.

Roelof

Offline

#18 2008-10-06 20:26:26

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

Re: link problem

Do you have different page templates for your sections, or do all sections use just one?

Offline

#19 2008-10-07 06:13:33

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

Re: link problem

Every section uses the same page template.
And if i do your suggestion about <if_section> then i have a nested tag.

Roelof

Last edited by roelof (2008-10-07 11:36:05)

Offline

#20 2008-10-07 13:58:25

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

Re: link problem

roelof wrote:

And if i do your suggestion about <if_section> then i have a nested tag.

I didn’t mean inside the other if_section, but could you try to place it after it, just to see what happens?

Edit: even if it were possible, it wouldn’t do anything if you placed it inside the other one (<txp:if_section name=",default">), if that condition is true you will definitely never be in section ‘gastenboek’ ;)

Last edited by els (2008-10-07 14:03:24)

Offline

#21 2008-10-07 17:40:44

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

Re: link problem

Hai Els,

Problem finally solved.
This did the trick.
bc. <txp:if_section name=”,default”>
<txp:if_category name=“zwangerschap,jaar1,jaar2,jaar3,jaar4”>
<txp:article limit=“1” form=“dagboek” sort=“Posted asc” />
<txp:ob1_pagination outputlastfirst =“0” outputnextprevious=“0” />
<txp:else />
<txp:article_custom section=“voorpagina” form=“default” />
</txp:if_category>
</txp:if_section>

<txp:if_section name=“gastenboek”>
<txp:article />
<txp:else />
</txp:if_section>

Groetjes,

Roelof

Offline

#22 2008-10-07 18:26:39

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

Re: link problem

Yes, I thought it would :)

(You don’t need the last <txp:else /> if you don’t have any code after it.)

Offline

Board footer

Powered by FluxBB