Page 1 of 1
fetch entries with CustomField1 <>""
Posted: Tue Jul 07, 2015 9:17 pm
by reinhardl
Hi,
normaly i fetch entries like this:
Code: Select all
{serendipity_fetchPrintEntries limit="0,3" category=$startpagerow.kategorie noCache=false fetchDrafts=false full=false use_footer=false template="entries_3gleich.tpl"}
is it possible to fetch only these entries which have an CustomField1 !="" in serendipity_event_entryproperties plugin?
thanks
Re: fetch entries with CustomField1 <>""
Posted: Wed Jul 08, 2015 10:33 am
by Timbalu
Should be
Code: Select all
"ep_CustomField='customVal',ep_CustomField2='customVal2'"
shouldn't it?
See
http://www.s9y.org/78.html
Re: fetch entries with CustomField1 <>""
Posted: Wed Jul 08, 2015 10:10 pm
by reinhardl
hmm..
Code: Select all
{serendipity_fetchPrintEntries limit="0,3" ep_CustomField1 !="" category=$startpagerow.kategorie noCache=false fetchDrafts=false full=false use_footer=false template="entries_3boxes.tpl"}
do not work
Re: fetch entries with CustomField1 <>""
Posted: Thu Jul 09, 2015 10:05 am
by Timbalu
I am sorry, my fault. I should have been more precise.
It has to be entryprops="ep_something=true" - so in your case it should be
Code: Select all
{serendipity_fetchPrintEntries limit="0,3" entryprops="ep_CustomField1!=''" category=$startpagerow.kategorie noCache=false fetchDrafts=false full=false use_footer=false template="entries_3boxes.tpl"}
But I am not sure if the regex does notice a not equal (!=) notation. Just give it a try.
...and you should rename your customFields to something more meaningful.
Re: fetch entries with CustomField1 <>""
Posted: Fri Jul 10, 2015 8:05 am
by reinhardl
it works
Thank you