Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-03-23 11:40:57
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
after clicking permlink no pages
Hello,
Im rebuilding my site due to several languages problems.
Now im runnig into another problem.
I have a article on the frontpage.
When i click on the permlink of that article the article is gone.
The article belongs to the article section.
My html looks like this :
bc..
<div id=“content”>
<txp:if_section name=“contact”>
<h3>Hier kunt u uw opmerkingen/vragen aan mij mailen</h3>
<txp:output_form form=“email” />
</txp:if_section>
<txp:if_section name=”“>
<txp:article form=“default” limit=“1” listform=“default” />
</txp:if_section>
<txp:if_section name=“zwangerschap,bevalling,jaar1” >
<txp:article form=“default” limit=“1” listform=“default” />
</txp:if_section>
</code>
</div>
Regards,
Roelof
What went wrong.
(Edit: updated code so it would display properly. :) -Mary)
Last edited by Mary (2006-03-24 02:21:28)
Offline
Re: after clicking permlink no pages
You don’t seem to have told TXP how to display both article_list and individual_article views. You would need to add the conditionals something like so:-
<code>
<txp:if_section name=”“>
<txp:if_article_list>
<txp:article limit=“1” />
<txp:else />
<txp:article />
</txp:if_article_list>
</txp:if_section></code>
<br />
You need to do this in each of your sections except the “contact” section. As you are using your “default” form there is no need to specify it as TXP will always use defaults unless told otherwise.
Last edited by thebombsite (2006-03-23 15:18:39)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2006-03-23 16:07:08
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: after clicking permlink no pages
Thank you,
That did the trick.
Now rebuilding the other things.
Regards,
Roelof
Offline
Pages: 1