Select Entries Purpose
Hello Lowe,
Can I ask what the select entries variable type is for? I thought it might create a relationship with the entry so I can output any custom fields in that entry.
Hello Lowe,
Can I ask what the select entries variable type is for? I thought it might create a relationship with the entry so I can output any custom fields in that entry.
Replies
Low 5 Nov 2010 08:03
Hey Steven,
The Select Entries type will save the entry ids for the selected entries. You can them use those in your template id early parsing is turned on. If you use the drag and drop lists, you can also set them in a certain order.
What you then do with the entry ids returned, is entirely up to you. Most obvious use is using them as a parameter for your channel:entries tag, for example the entry_id="" parameter or (for displaying the entries in the specific order) the fixed_order="" parameter.
stinhambo 5 Nov 2010 21:12
Aaargh early parsing! I'm such a dolt. I put this into the entry_id parameter and wondered why it wasn't doing anything.
Thanks for the EE 101 lesson.
stinhambo 5 Nov 2010 21:13
PS. Although it's now obvious, a code example might be useful for another potential dumb moment from me or other developers.
nolfranklin 31 Aug 2011 20:59
For anyone stuck on using Low Variables for page navigation.
{exp:low_variables:parse var="header_navigation"}
{exp:channel:entries channel="page" dynamic="no" fixed_order="{header_navigation}" sort="asc" }
<a href="{title_permalink="channel/archives"}">{title}</a>
{/exp:channel:entries}
{/exp:low_variables:parse}
Low 31 Aug 2011 21:02
Nol, if you make sure that {header_navigation} has early parsing enabled, then you wouldn't even need the {exp:low_variables:parse} tag pair, just:
nolfranklin 31 Aug 2011 21:04
You just made my day, Low! Thank you!