Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-15 21:28:21

disdat
New Member
Registered: 2004-09-10
Posts: 3

Listing All Articles for a Section

Hello!

I have been searching for a way to create a page that will display each section, and then create a list of each of the section’s articles.

For example

Personal Section
  • Article One
  • Article Two
  • Article Three
Tutorials Section
  • Article One
  • Article Two
  • Article Three
  • Article Four

etc

I tried using this ( I guess I would have to create a new tag for each section manually on the page)

<code><txp:recent_articles section=“code” form=“list” sortby=“custom_1” sortdir=“desc” /></code>

list form:

<code><ul>
<li><txp:permlink><txp:title /></txp:permlink>**</li>
</ul>
</code>

This listed all the articles, but not as a list. I don’t think I am understanding the whole “form” thing. (I am not a newbie to CMS, just with Txp)

Thank you for any help, I am ready to give up, but really want to keep going!

debbie T

Last edited by disdat (2006-01-16 01:48:18)

Offline

#2 2006-01-15 21:37:57

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

Re: Listing All Articles for a Section

In your form remove the “ul” tags then on the page template use something like:-

<code>
<p>Personal Section</p>
<ul>
<txp:article_custom form=“list” section=“personal” />
</ul>
<p>Tutorial Section</p>
<ul>
<txp:article_custom form=“list” section=“tutorials” />
</ul></code>


Stuart

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

Offline

#3 2006-01-15 22:32:06

disdat
New Member
Registered: 2004-09-10
Posts: 3

Re: Listing All Articles for a Section

Thank you, Stuart

That worked. I was using the wrong form!

Offline

Board footer

Powered by FluxBB