Hi all,
I'm having a wonderful experience with custom fields.
Right now I have a problem.
How can I compare a variable with custom fields?
My code:
<mt:SetVarBlock name="page_title"><$mt:PageTitle encode_html="1"$></mt:SetVarBlock>
<mt:If name="page_title" like="(<EntryDataField1>|<mt:EntryDataField2>|<mt:EntryDataField3>)">
ok
<Else>
not ok
</If>
Don't work
What's wrong?
raffaele
Reported on Movable Type 5

Hi Raffaele,
Why don't you do it like this:
<mt:SetVarBlock name="page_title"><$mt:PageTitle encode_html="1"$></mt:SetVarBlock>
<mt:SetVarBlock name="against_titles">(<mt:EntryDataField1>|<mt:EntryDataField2>|<mt:EntryDataField3>)</mt:SetVarBlock>
<mt:If name="page_title" like="$against_titles">
something
<mt:Else>
something else
</mt:If>
Kind Regards,
Mihai Bocsaru
----------------------------------
Web Development
Movable Type Consulting
Six Apart Partner
http://www.pro-it-service.com/
----------------------------------
Movable Type Demo
http://www.movabletypedemo.org/
Hi Mihai,
now work fine!
Thank you
raffaele
Sei benvenuto! ;)