I want this:
{exp:channel:entries channel="doctor_finder" status="not closed" author_id="CURRENT_USER" limit="1" dynamic="no"}{entry_id}{/exp:channel:entries}
to be used as the value for entry_id in:
{exp:safecracker channel="doctor_finder" return="safecracker/ENTRY_ID" json="yes" entry_id="" parse="inward"}
I cannot figure out how to get this to work. I tried the full thing:
{exp:safecracker channel="doctor_finder" return="safecracker/ENTRY_ID" json="yes" entry_id="{exp:channel:entries channel="doctor_finder" status="not closed" author_id="CURRENT_USER" limit="1" dynamic="no" parse="inward"}{entry_id}{/exp:channel:entries}"}
I tried a snippet:
{exp:safecracker channel="doctor_finder" return="safecracker/ENTRY_ID" json="yes" entry_id="{snp_current_user_profile_id}" parse="inward"}
I tried an embedded template:
{exp:safecracker channel="doctor_finder" return="safecracker/ENTRY_ID" json="yes" entry_id="{embed='location_mapper/current_user_profile_id'}" parse="inward"}
The full thing and embedded template result in an error page with “You must specify a valid entry to edit.” The snippet just doesn’t do anything. How can I achieve this?
EE 2.3.1
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.