edit_link to SC
Posted: 22 December 2010 03:02 AM   [ Ignore ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

I have problem to make ‘edit_link’ to SC in entry.

Because, in {exp:channel:entrie}, {member_id} {username} {screen_name}â??s value in NOT login userâ??s value. It show value of entriesâ?? {author}.
But outside of {exp:channel:entrie}, it show correctly.

Strange.

So, I can’t use {if author_id==member_id} edit_link {/if}


Are there any missing? or Any other way to make edit_link ?

{exp:channel:entries channel="board" limit="1" status="open" disable="category_fields" dynamic=â??offâ?}

    {author_id}
-{member_id}-{author}-{username}-{screen_name}

{
/exp:channel:entries}
    
    {author_id}
-{member_id}-{author}-{username}-{screen_name} 
Profile
 
 
Posted: 22 December 2010 03:04 AM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Try:

{if author_id == logged_in_member_id}
edit_link
{
/if} 
Profile
 
 
Posted: 22 December 2010 03:08 AM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-12-19

Thank you. ^^

Profile
 
 
   
 
 
‹‹ MSM site= problem      Multiple php errors ››