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

Support archive

Low Variable with Select Entries fieldtype, includes Relationship

Amy Witty 19 Dec 2017 19:00 question, complete

I had a Low Variable which used Playa to select which "feature" entries should appear on the home page and in what order. I decided to eliminate Playa and changed the fieldtype over to the native Select Entries with the drag and drop columns. That part works great. The problem is how do I change my template syntax? I've looked in the LV docs and fussed with this for hours to no avail.

Code for original template (using Playa) here: https://gist.github.com/amywitty/6aec...

Thanks!

Replies

  1. Low 19 Dec 2017 19:10

    If you choose a pipe as separator for the Select Entries variable, the output of the var will be a pipe-separated list of entry IDs, which you can then feed to the Channel Entries tag, provided that Early Parsing is also enabled for the var.

    So, make sure you've enabled early parsing, have the separator set to a pipe, and then use the channel:entries tag like so:

    {exp:channel:entries fixed_order="{lv_settings_home_feature_items}"} 
    ...
    {/exp:channel:entries}

  2. Amy Witty 19 Dec 2017 19:28

    Thank you! This is working. Also, note to self: remember to clear the page/template cache while testing.