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

Support archive

Early parsed playa variable to be used for the value in the entry_id channel parameter?

Siebird 8 Jan 2013 21:04 question, complete

Low,

I'm trying to give my client access to order/show certain entries on the product home page w/o me having to hard code the entry id's. So, I created a Playa variable that allows them to add/order entries. Currently this renders nothing when use as a value in the entry_id parameter:

 
{exp:channel:entries
channel="category_images"
disable="categories|category_fields|member_data|pagination|trackbacks"
dynamic="no"
entry_id="{exp:low_variables:parse var="lv_product_home_listing" preparse:entry_id=""}{entry_id}|{/exp:low_variables:parse}"
require_entry="yes"
orderby="title"
sort="asc"
}

Replies

  1. Low 8 Jan 2013 21:12

    In this case, you're probably better off using the Select Entries variable type, as that can save the entry ids as a pipe separated list. Then you can just use the variable syntax in the parameter: fixed_order="{lv_product_home_listing}"

    Oh, and the preparse: parameter is only available for Textarea variable types.

  2. Siebird 8 Jan 2013 21:14

    Thanks for the clarification. I don't know what I didn't use that in the first place. Re: preparse: parameter, that was just leftover from me trying to get it to work, but good to know! ;)