Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-04 16:22:09

pipa
New Member
Registered: 2009-06-04
Posts: 4

headlines index, how to group the titles of the articles published

I need a plugin to index in one page only the titles of the articles published, like a headlines index.
I use Textpattern to publish news, and i would like to list only the titles of each article on a page with a link to this article. I would include this in my index page.

For example:
- New sections explained
- How to raise animals 101
- Pick anything, the choice is yours

All with link to the article itself. Of course this list should update everytime something new is published.

Maybe a full page or a snippet of code that i could add to another page. Anything. Please.

Thanks,

Max

Last edited by pipa (2009-06-04 16:23:09)

Offline

#2 2009-06-04 16:55:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: headlines index, how to group the titles of the articles published

Hi Max,
welcome to txp
You actually do not need a plugin check out the article and/or the article_custom tags


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-06-04 17:10:20

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: headlines index, how to group the titles of the articles published

Make a new article form containing this:

<txp:permlink><txp:title /></txp:permlink>

Call this form with an article or article_custom tag by setting the form attribute. Which tag you should use depends on what kind of page this is for and what articles you want to list.

For more info you should maybe start here


Code is topiary

Offline

#4 2009-06-04 18:23:13

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

Re: headlines index, how to group the titles of the articles published

Max, do you mean something like this?

As Yiannis and J suggest, the Article tag (with or without “excerpts”) is your friend:

<txp:output_form form="header" />
<txp:article status="sticky" limit=1 />
<txp:article listform="excerpt" limit="50" />
<txp:output_form form="footer" />

Keith
Blyth, Northumberland, England
Capture The Moment

Offline

Board footer

Powered by FluxBB