I need a member on my site to be able to do the following…
Click on a link that will take them to a Safecracker form that edits the last entry they made in a specific channel.
I am currently using the following code:
{exp:channel:entries limit="1" author_id="CURRENT_USER"}<a href="/temps/edit/{entry_id}">Edit</a>{/exp:channel:entries}I have double-checked and the Safecracker form is looking at the correct segment (3).
This seems to work for my Super Admin account (it grabs the last entry I made), but not for one or two of my other testing accounts, they seem to attempt to load the most recent entry regardless of the logged in member.
Note: The /temps/ part could also be /employers/ depending on the logged in user’s member group. I’ve only tested with /temps/ so far.
Any pointers on this? PHP or Query stuff is fine to use for this if required.