Example Expression Engine conditional to put edit button on public site for site publishers

/ Published in: Other
Save to your folder(s)

Copy this code and paste it in your HTML
  1. {if member_group==6 OR member_group ==1 OR member_group==5}
  2. <div class="editbnt"><a href="{site_url}/system/index.php?S=0&C=edit&M=edit_entry&weblog_id={weblog_id}&entry_id={entry_id}">edit</a></div>
  3. {/if}

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.