How to only display an authors entries for editing.
Posted: 14 October 2010 11:56 PM   [ Ignore ]
Wallflower
Rank
Total Posts:  11
Joined  2010-09-21

Hello,

In my old style Stand Alone Edit Page I would add this parameter that would only pull in the logged in authors entries for editing and not display any other authors entries.

author_id="CURRENT_USER" 

I don’t see this author_id parameter being available with SafeCracker. How do you suggest I get around this issue or do you think it would be a good parameter to add perhaps.

Thanks
John

[ Edited: 14 October 2010 11:59 PM by johnniefp ]
Profile
 
 
Posted: 15 October 2010 12:00 AM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Well you can still use that to display a list of entries with a channel entries tag

{exp:channel:entries channel="news" author_id="CURRENT_USER"}
<a href="{entry_id_path=site/edit}">{title}</a><br />
{/exp:channel:entries} 

On the SafeCracker side, you probably want to set up your member group permissions to make sure they can’t edit other user’s entries.

Profile
 
 
Posted: 30 October 2010 01:40 PM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-09-21

Forgot to say thanks for the response.
All working fine.

John

Profile