Possible to parse member_id early for use in channel entries
I use an embedded template with php enabled on input to return master settings for the current member/operator.
{exp:channel:entries channel="operator_preferences" url_title="EE =& get_instance(); $tt=$this->EE->session->userdata['member_id']; echo "operator".$tt."_preference" ?>" status="Open|Closed" dynamic="no"}
This works OK but is a bit awkward: Could member_id become parsed early by means of low variables ?
Replies
icebreaker 16 Jan 2012 00:08
Seems my question has already been answered in a previous post: Snippets are entered as text and not pre-parsed. Since member variables are parsed late, it is necessary to use an embedded template with php on input as described in my post.
Low 16 Jan 2012 06:48
You could use {logged_in_member_id} as an early parsed variable. Just make sure that setting is ticked on in the extension settings.
icebreaker 16 Jan 2012 11:26
The information is out of sight below the fold under the title extension settings - reason I missed it. Consider putting in a link to the anchor in the right hand menu.
Thanks again for the quick answer.