All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Conditional URL in Playa field within Low Variable

Sjoerd 22 Jun 2014 18:53 question, complete

{banner_url_home} is a Playa field and can contain entries from different channels.
If the channel is "landingpage" OR "page" OR "product" OR "industries" OR "resources” the URL has to be different than from other channels (news and blog).

I have this, but that doesn’t work properly: when the channel is News and Blog it goes to the first URL as well.

http://pastebin.com/embed_js.php?i=Md...">

Replies

  1. Low 23 Jun 2014 07:12

    I suggest you read up on conditional syntax. You should write the conditional you want like this:

    {if channel_short_name == 'landingpage' OR channel_short_name == 'page' OR channel_short_name == 'product' ... }