Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-22 11:49:16

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Articles with a custom field

<txp:article_custom custom_1=“DVD” />

Last edited by FireFusion (2007-12-22 12:44:01)

Offline

#2 2007-12-22 12:31:07

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Articles with a custom field

Do you mean using “customfield_1” as an attribute name instead of using the label set for the custom1 field in the preferences?

Offline

#3 2007-12-22 12:43:50

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Articles with a custom field

I mean display only a list of articles which contain the text “DVD” in custom field 1. So the ability to display list of articles based on the content of their custom fields.

Offline

#4 2007-12-22 12:57:37

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

Re: Articles with a custom field

doesn’t it already have this?

http://textbook.textpattern.net/wiki/index.php?search=article_custom

customfieldname=“value” Restrict to articles with specified value for specified custom field name. Replace “customfieldname” with the name of the custom field. Default is unset.

Offline

#5 2007-12-22 16:45:01

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Articles with a custom field

It does. Instead of “customfield_1” use the label that you’ve gave that custom field in the TXP preferences.

Offline

Board footer

Powered by FluxBB