Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-30 16:57:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#3 2007-09-30 17:45:40

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#4 2007-09-30 19:33:25

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: custom fields in address

chs_if_urlvar might be of help.

Offline

#5 2007-09-30 19:38:14

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

#7 2007-10-01 08:01:12

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

Board footer

Powered by FluxBB