Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
custom fields in address
Can a custom field be included as part of a page address like &?customfield1=“foo” and if so what is the correct syntax?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#2 2007-09-30 17:36:08
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: custom fields in address
By design I believe inclusion in the url to be an unavailable choice. Are you looking to search an article list for specific custom field content this way?
Offline
Re: custom fields in address
What I want to do is create a link from an article that contains specific data in “custom1” to a category listing which only contains articles with the same “custom1” data so I was looking at something like – <a href="<txp:site_url />artists/?c=artist-biography&?custom1=<txp:custom_field name="artist-surname" />">Biography</a>
.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: custom fields in address
chs_if_urlvar might be of help.
Offline
Re: custom fields in address
yep, sven’s right: you can do it with this that underrated plug-in. Here’s a thread from a while back with a similar situation.
TXP Builders – finely-crafted code, design and txp
Offline
#6 2007-09-30 19:42:40
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: custom fields in address
Custom field data is available on an article by article basis via the $thisarticle variable, I’m struggling a little getting my head around the logic of using a single or single variable value against those dynamically generated custom field contents, perhaps a special category value used in a conditional in the article form – then if_custom_field and custom_field tag combinations.
Offline
Re: custom fields in address
Thanks Rick. I think the problem here is that I first need to move from one section to another. Can’t avoid that. After that I need to find a specific article or articles within a category. I was just trying to do it in one step but no matter. I can do it another way. I’ll have a look at this plug-in though first.
Sven and Jakob – thanks for the pointer. I shall go and have a look at it. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Pages: 1