Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-19 13:56:49

califfo
New Member
Registered: 2006-03-12
Posts: 9

List articles from sections...

Hi…

I’m making a homepage with static articles. I have divided them in sections, and now I would like to make a menu, with the article-titles. How do I do that?

I should look like this:

Sectiontitle 1 – articletitle 1 – articletitle 4

Sectiontitle 2 – articletitle 3 – articletitle 2

…where artiletitle is a link to the whole article.

I can’t figure out which tag I have to use to do this.

Offline

#2 2006-03-19 16:58:11

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

Re: List articles from sections...

Try something like this:
<code>
<ul>
<li><txp:section name=“section1” title=“1” link=“1” />
<ul><txp:article_custom section=“section1” form=“title” /></ul></li>
<li><txp:section name=“section2” title=“1” link=“1” />
<ul><txp:article_custom section=“section2” form=“title” /></ul></li>
</ul>
</code>
Article form ‘title’:
<code>
<li><txp:permlink><txp:title /></txp:permlink></li>
</code>
You can style the list in the CSS.

Offline

#3 2006-03-19 17:35:42

califfo
New Member
Registered: 2006-03-12
Posts: 9

Re: List articles from sections...

Cool. Thanks!

Offline

Board footer

Powered by FluxBB