Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-26 17:02:24

barnettgs
Member
Registered: 2005-09-20
Posts: 23

Problem with Article listing

I have created two forms like this:

Static_article:
<code><h3><txp:title /></h3>
<p><i><txp:excerpt /></i></p>
<txp:body /></code>

Static_headline:
<code><li><txp:permlink><txp:title /></txp:permlink></li></code>

I have created a page called static_listing and put in code:

<code><ul>
<txp:article limit=100 form=“static_article” listform=“static_headline” />
</ul>
<txp:if_individual_article>
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list></code>

And created a section called static_list and set it to use page ‘static_listing’.

On the website, it is working fine as expected but after opening any one of articles listed, page has formatted as if it is still in ‘static_listing’ page and I know there must be a workaround for this but how?

Last edited by barnettgs (2006-03-26 17:02:41)

Offline

#2 2006-03-26 17:12:18

barnettgs
Member
Registered: 2005-09-20
Posts: 23

Re: Problem with Article listing

Ok, if I removed <code><li></code> code from static_headlines form and <code><ul></code> from static_listing page – it is fine but I would like to have a bullet listing, is that possible?

Last edited by barnettgs (2006-03-26 17:12:46)

Offline

#3 2006-03-26 18:22:16

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

Re: Problem with Article listing

<code>
<txp:if_article_list>
<ul>
<txp:article limit=100 form=“static_headline” />
</ul>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
<txp:else />
<txp:article form=“static_article” />
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_article_list></code>
<br />

and put the “li” tags back into your static_headline form.

Last edited by thebombsite (2006-03-26 18:23:10)


Stuart

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

Offline

#4 2006-03-26 18:59:24

barnettgs
Member
Registered: 2005-09-20
Posts: 23

Re: Problem with Article listing

Perfect! Just what I need.

Thanks!

Offline

#5 2006-03-26 19:22:33

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

Re: Problem with Article listing

No problem. :)


Stuart

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

Offline

Board footer

Powered by FluxBB