Textpattern CMS support forum
Question about txp:if_request
I want to check if specific custom fields are used in the url. For example the field “location”:
If one of these custom fields is in the url, do “this action”.
I now have this:
<txp:if_request name="location,period,artist,publisher,medium" type="name">this action</txp:if_request>
But this also gives “this action” when another custom field (“translator”) is in the url.
What am I doing wrong?
Re: Question about txp:if_request
etc wrote #332228:
If you need it in an article list context, try
That solved it wonderfully! Why didn’t I think of that, I now wonder. Sometimes, one overthinks…
Thank you so much for both solutions!