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

Support archive

Possible to parse member_id early for use in channel entries

icebreaker 15 Jan 2012 23:12 question, complete

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

  1. 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.

  2. 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.

  3. 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.