Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-10-13 12:21:40
- Distrahera
- Member
- Registered: 2008-09-20
- Posts: 30
News section - fullview + list view?
Hi!
Im trying to create a news section on my site and I get a strange behaviour from what I think is the permlinks.
I am trying to create a new section overview which will show my newest news article with one form, and the older articles in a list form. the problem is that when i click the news to get to the fullview and comments etc – the article is duplicated, so are the comments!
here is my news section:
<txp:article form=“articleFull” limit=“1” sort=“Posted desc” />
<txp:article offset=“1” limit=“5” pageby=“5” form=“articleList” sort=“Posted desc” time=“any” />
The whole issue can be witnessed at www.foxforcefive.net
Thanks for any help!
Offline
Re: News section - fullview + list view?
Try something like:-
<txp:if_article_list>
<txp:article form="articleFull" limit="1" sort="Posted desc" />
<txp:article offset="1" limit="5" pageby="5" form="articleList" sort="Posted desc" time="any" />
<txp:else />
<txp:article form="articleFull" />
</txp:if_article_list>
The problem is having the 2 article tags without telling TXP how to display the different views. I presume that in your “Preferences” you have “Automatically append comments to articles?” set to yes. In “individual_article” view TXP will see the 2 article tags and run through the process twice.
Last edited by thebombsite (2008-10-13 12:53:45)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2008-10-14 07:27:52
- Distrahera
- Member
- Registered: 2008-09-20
- Posts: 30
Re: News section - fullview + list view?
Aha! Thats true, and thats exactly what fixed the issue. Thank you.
I second thoughts, it seems reasonable.
Offline
Pages: 1