Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-15 09:17:05

aye
New Member
Registered: 2009-12-15
Posts: 1

How to create link to <txp:article_custom ?

I have one custom fields named “Color”, Let’s said I will enter Blue, Black or White to the Custom field “Color” when I add new article.

Question:
How can I have “Blue”, “Black” and “White” links display at left side? So that when someone click on “Blue” link, a list of my article which has “Blue” entry (at the Custom field Color) will show at right side?

I try with <txp:article_custom Color=“Blue” form=“Blue”/> but the list will display at left, and it didn’t create a “link”…

Please help!

Offline

#2 2009-12-15 10:22:52

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,250
Website GitHub Mastodon Twitter

Re: How to create link to <txp:article_custom ?

Did you try <txp:article_custom customfieldname="Blue" form="Blue"/>?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-12-15 17:57:19

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

Re: How to create link to <txp:article_custom ?

colak wrote:

Did you try <txp:article_custom customfieldname="Blue" form="Blue"/>?

I think that’s what aye did ;) From Textbook:

Replace “customfieldname” with the name of the custom field.

You need to link to something like site.com/section-name/?color=“blue”, and a plugin to extract the variable from the URL: adi_gps.

Offline

Board footer

Powered by FluxBB