Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-20 17:00:01

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Article Lists

Hi

I need to produce a list of article titles.

I have been using RSS Suparchive but the offset feature doesn’t work (not sure why).

I have a large number of sections and wish to exclude only 5 or 6 making it tricky to use article_custom.

Does anyone know

a) a way to fix rss_suparchive.

b) another plugin that might do what I want.

c) another way of doing this using native txp.

Thanks


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#2 2009-07-20 18:00:35

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Article Lists

Solved this using c)

Used <txp:article_custom /> to call a form.

In the form I used <txp:if_article_section > to check if it’s one of sections which I don’t want outputting.


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#3 2009-07-20 18:45:39

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Article Lists

Just be aware that any counts would be off. If your limiting the number of articles or displaying a count or pageing.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2009-07-23 10:23:02

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Article Lists

Thanks Matt,

I did notice this happening.

I use articles to produce adverts with an expiry date (very useful).

I can however set the publishing date to say 2006 which stops the ads appearing in my recent article lists.

Thanks


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#5 2009-07-23 11:11:46

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

Re: Article Lists

geoff777 wrote:

I have a large number of sections and wish to exclude only 5 or 6 making it tricky to use article_custom.

<txp:article_custom section='
   <txp:section_list exclude="section1,section2" break=",">
      <txp:section />
   </txp:section_list>
' />

(line breaks added for clarity)

I’m sure I learned that from Els, but I can’t remember in which thread.

Last edited by jsoo (2009-07-23 11:15:53)


Code is topiary

Offline

#6 2009-07-26 15:24:46

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: Article Lists

Thank you jsoo,

I was unaware of the exclude option of section_list.

This will work perfectly.

Don’t you just love textpattern!

:-)


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

Board footer

Powered by FluxBB