1

Im trying to send off the following channel entries request.

{exp:channel:entries channel="products" orderby="title" sort="asc" search:crops="{segment_3}"} 
{/exp:channel:entries}

The crops field is a Playa field. If i use {crops} tag in my template, i get entry_id(s), rather than the url_title or title.

Shouldn't search:crops try to match both entry_id and url_title?

If not, is there a way of getting {entry_id} from {url_title} if I know it is equal to {segment_3}, so that i call:

{exp:channel:entries channel="products" orderby="title" sort="asc" search:crops="{segment_3_entry_id}"} 
{/exp:channel:entries}

Is there anything else I should be doing? Any help would be greatly appreciated!!

  • What happens if you use {crops}{title}{/crops} since Playa is always used with a tag pair. – Siebird Jul 8 '13 at 12:02
0

Haven't test it but I assume if you use url_title="{segment_3}" it would be the same as entry_id and search this specific entry+

otherwise you are searching all entry's in your channel

http://ellislab.com/expressionengine/user-guide/templates/globals/url_segments.html

| improve this answer | |
  • thanks, switched to dynamic="no" and now works like a charm! – Dimitri Shukuroglou Jul 8 '13 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.