Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-11 21:40:23

Zubrik
Member
Registered: 2005-07-28
Posts: 65

How can I create a list? (beginner)

Hello,

I’m beggining with TXP, and I haven’t found an answer to my question in the FAQ.

I would like to know which tag should I use to create a list in a page, where each list item is the heading of an article of a unique section.

Thank you.

Offline

#2 2006-02-11 22:00:11

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: How can I create a list? (beginner)

article_custom to the rescue..

Offline

#3 2006-02-11 22:33:45

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: How can I create a list? (beginner)

Oh, I see… I can display the articles of the section I want (<code><txp:article_custom section=“eventos” /></code>), but I can’t manage to make the list with the tags <code><ul></code> and <code><li></code>. And I also would like that the <code><li></code>‘s in the list were just the headings of the articles, not the whole body of text.

Thanks.

Offline

#4 2006-02-11 22:52:59

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: How can I create a list? (beginner)

You need to make a custom article form then call it in the tag.

Your new article form called (myFormName) should look like:

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

Your call should look like:

<code><ul><txp:article_custom form=“myFormName” section=“eventos” /></ul></code>

Give that a try. For more elaborate lists, try here

Last edited by mrdale (2006-02-11 22:54:50)

Offline

#5 2006-02-11 23:02:24

Zubrik
Member
Registered: 2005-07-28
Posts: 65

Re: How can I create a list? (beginner)

Thanks! That’s exactly what I was looking for.

Offline

Board footer

Powered by FluxBB