Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Help with customfieldname="value" please.
Hey!
I want to use the attribute customfieldname=“value” ,
to list only articles that have “bla” word in the custom field name “Video_Title”.
So it’s become Video_Title=“bla”, but it’s not working because I have other words in the same field in the same articles like “bla 123”.
so if I use Video_Title=“bla” it will give me nothing and if I will use Video_Title=“bla 123” it will work.
but I don’t have “123” in all of the articles that I want to list, I only have “bla”.
So how can I use this attribute to list articles that have the word “bla” in my custom field together with other words please?
Have a fun weekend :)
Offline
#2 2010-02-19 21:41:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Help with customfieldname="value" please.
If I were you I’d go for smd_if :)
Offline
Re: Help with customfieldname="value" please.
Try Video_Title="%bla%"
.
Code is topiary
Offline
Re: Help with customfieldname="value" please.
Els wrote:
If I were you I’d go for smd_if :)
I’m afraid visiting there again, spamming more 2 pages hehe lol ;)
jsoo wrote:
Try
Video_Title="%bla%"
.
Cool thanks, works great!
It’s 07:40am here, I just came back from a techno party, I’m totally dead!
but now will have a better sleep ;)
Is there a page on textbook/txp-tips that I can learn how to use all that special characters please?
Offline
Re: Help with customfieldname="value" please.
It’s MySQL regular expression syntax. I should add the caveat that this may be an accidental rather than intended Txp feature.
Code is topiary
Offline