I'd like to find out which entries have something entered in a certain custom field. How can I do that?
Reported on Movable Type 4.261
I'd like to find out which entries have something entered in a certain custom field. How can I do that?
Reported on Movable Type 4.261
Hi Sal,
You would do it like this:
<mt:Entries>
<mt:If tag="EntryCustomFieldHere">
<mt:EntryTitle>
</mt:If>
</mt:Entries>
Kind Regards,
Mihai Bocsaru
----------------------------------
Daily Movable Type Consultant
Web Development
Movable Type Consulting
Six Apart Partner
http://www.pro-it-service.com/
----------------------------------
Movable Type Demo
http://www.movabletypedemo.org/
----------------------------------
Open Melody Demo
http://www.openmelodydemo.org/
Not the question you asked, but Entries can also be filtered by a particular custom field value like this:
Which is pretty cool. Mihai, is that correct?
Oops, left out "field:" prefix:
That's right!
Hi Rick,
That is right, but the proper syntax is:
<mt:Entries field:HERE_PUT_THE_CUSTOM_FIELD_BASENAME>
or:
<mt:Entries field:HERE_PUT_THE_CUSTOM_FIELD_BASENAME="Equals this value">
Kind Regards,
Mihai Bocsaru