Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-19 21:12:49

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 619
Website

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

#3 2010-02-19 22:03:40

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Help with customfieldname="value" please.

Try Video_Title="%bla%".


Code is topiary

Offline

#4 2010-02-20 05:43:09

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 619
Website

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

#5 2010-02-20 13:11:13

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

Board footer

Powered by FluxBB