Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-29 09:10:25

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Mix articles from 2 different sections?

Is there a way (or maybe a plugin?) that allows articles from more than one section to be shown?

I’m thinking of something like this:

<txp:article_custom section="blog, noodlings" limit="6" />

This isn’t occurring on the ‘front page’ so I can’t use my section preferences to mix the specific sections.


Cheers,
Jon VC#9

Offline

#2 2006-03-29 09:47:38

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

Re: Mix articles from 2 different sections?

Jon,

I think it will only work if you use a form and <code><txp:article_custom/></code> more than once.

Something like this:

<code>
<txp:article_custom form=“lofi” section=“blog” limit=“3” />
<txp:article_custom form=“lofi” section=“noodlings” limit=“3” />
</code>

Offline

#3 2006-03-29 09:51:21

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Mix articles from 2 different sections?

Yeah, so no way of ‘intermingling’ the posts?


Cheers,
Jon VC#9

Offline

#4 2006-03-29 10:02:51

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

Re: Mix articles from 2 different sections?

I don’t think intermingling works out of the box (correct me if I’m wrong forum admins)

However there are many options available with the article_custom so maybe you could manually mingle them a bit i.e. use the tag like 6 times with different selection criteria (date, etc). But maybe I get carried away here…

Offline

#5 2006-03-29 14:08:57

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Mix articles from 2 different sections?

Hi jonhicks

I think it’s no possible with built-in tags, but you can try with chh_article_custom

From the tag attribute reference of the plug-in

section=“section1,section2”
Restricts the article listing to a comma-separated list of section names. The special wildcard “?” will be replaced with the currently browsed section name, if any.

Hope that helps you.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2006-03-29 15:06:26

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: Mix articles from 2 different sections?

Thats exactly what I need – thanks manigui!


Cheers,
Jon VC#9

Offline

Board footer

Powered by FluxBB