CreateSean
CreateSean

Reputation: 1386

Passing entry_ids to channel:entries tag with low variables entries select

I'm trying to pass entry_ids to a channel entries tag using low variables entry_select. When i place the following tag by itself in a template it outputs a list of 3 pipe separated entry_ids: {exp:low_variables:single var='lv-home-groups'}

however when I add the same code to the following channel:entries tag nothing is output.

{exp:channel:entries channel="groups" entry_id="{exp:low_variables:single var='lv-home-groups'}" disable="category_fields|pagination"}
code here 
{/exp:channel:entries}

I've tried early and late parsing but can't get it to work. If i manually place the entry_ids it works fine. I'm trying to avoid using an embedded template for performance reasons.

Upvotes: 3

Views: 1433

Answers (1)

Low
Low

Reputation: 566

Here's how: make sure early parsing is enabled for that variable, and then use the variable syntax instead of the tag syntax:

{exp:channel:entries channel="groups" entry_id="{lv-home-groups}"}
code here
{/exp:channel:entries}

Upvotes: 7

Related Questions