Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-26 11:54:55

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Qucik Question About Article Custom

I’m trying to figure out how to add multiple categories and sections to article custom, I couldn’t find any examples on Textbook in the tag section, and I have tried a search.

The code is:
<code>
<txp:article_custom section=”“ form=“archive_posts” limit=“99999” />
</code>

So would I be right in using:

<code>
<txp:article_custom section=“film,game,music,book” category=“film,game,music,book” form=“archive_posts” limit=“99999” />
</code>

Do I need spaces after the commas, or do I remove the commas or…? A similar example could be added to Textbook too.

THanks in advance

Offline

#2 2006-06-26 13:48:27

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,393
Website GitHub Mastodon

Re: Qucik Question About Article Custom

This doesn’t work that way. txp:article_custom only accepts one section and one category.

If it suits your need, you could work around that restriction with if_section or if_category which both accept a list of comma separated values.

Otherwise, I’m quite sure there’s a plugin which works the way you want.

Offline

#3 2006-06-26 19:35:10

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Qucik Question About Article Custom

would you happen to know the name of the plugin that would work this way?

thanks

Offline

#4 2006-06-26 22:21:13

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Qucik Question About Article Custom

Offline

#5 2006-06-27 00:27:32

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Qucik Question About Article Custom

merci very much :)

Offline

Board footer

Powered by FluxBB