Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-14 05:38:59

scdoody
Member
Registered: 2006-10-18
Posts: 129

Creating a list of content from multiple sections

Is it possible to pull content from multiple sections with one call to a form.

Here is the code I have:

<txp:article_custom limit=“4” form=“article_full” listform=“article_list” section=“news” />

I am currently pulling four posts from the “news” section but I want to also include “articles” in this list. How can I have both articles and news be included in this?

Offline

#2 2008-01-14 05:46:51

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Creating a list of content from multiple sections

i believe in the upcoming 4.0.6, you’ll be able to have a comma separated list for the section attribute

ie <txp:article_custom limit="4" form="article_full" listform="article_list" section="news, articles" />

for now though, you can use the plugin chh_article_custom

Last edited by iblastoff (2008-01-14 05:47:23)

Offline

Board footer

Powered by FluxBB