Hello! I’m having no end of trouble trying to get the following to work:
On my page, the following:
{embed="_templates/editprofile-varpass" authorloggedin="{logged_in_member_id}" parse="inward"}Calling the template at _templates/editprofile-varpass
{exp:channel:entries channel="memberorganisations" dynamic="off" orderby="date" status="Associate|Non-Associate" author_id="{embed:authorloggedin}"}
{exp:safecracker channel="memberorganisations" entry_id="{entry_id}"}
<label for="title"><strong>Title</strong></label>
<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100">
<label for="url_title"><strong>URL Title</strong></label>
<input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50" />
<hr >
<div><input type="submit" name="submit" value="Submit" /></div>
{/exp:safecracker}
{/exp:channel:entries}But this bit simply doesn’t work:
author_id="{embed:authorloggedin}"Neither does this, hence why I’m trying to use embed variables to get it done.:
author_id="{logged_in_member_id}"However, simply switching out
author_id="{embed:authorloggedin}"author_id="1"works perfectly - the issue is that I obviously need to alter the page depending on who is actually logged in! I’ve tried all manner of parse=“inward"s too, so that doesn’t seem to be the issue, and {embed:authorloggedin} does output the right value when I test it elsewhere in the embedded template.
Any ideas?!