We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Channel Form: How Allow authors to edit their own entries

How Do I?

restos's avatar
restos
54 posts
9 years ago
restos's avatar restos

Hello,

I’ve one channel form to submit entries for certain authors. I was checking documentation and I can’t find a way to allow authors to edit their own entries.

Is there any way to do it?

Thank you very much.

Jose

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
9 years ago
Ingmar Greil's avatar Ingmar Greil

Yes, there is a group permission setting that allows users to edit their own entries. Go to /system/cp/members/groups click on the group in question and search for “Allowed actions”. There’s a checkbox “Edit own entries”. You’ll probably need to allow “Access control panel” as well.

In addition to that it might be a good idea to provide a litte “edit this entry” icon on the frontpage to make it easier for your users.

{!-- Provide an edit link for authors and Superadmins: --}
{if logged_in_member_id == author_id || logged_in_group_id == "1"}
   <a href="http://{cp_edit_entry_url}">Edit Me</a>
{/if}
       
restos's avatar
restos
54 posts
9 years ago
restos's avatar restos

Thank you for your reply.

This is for edit entries in control panel, but I’m looking to edit entries on frontend using channel form. Is there any way to do it?

Thanks.

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Same permissions are required (except for CP access), but then they should be able to edit using the Channel Form.

       
restos's avatar
restos
54 posts
9 years ago
restos's avatar restos

Thank you Derek.

I’ve already set the permissions but I was looking for the template code in channel form to edit entries.

Is there any link with example code?

Thank you.

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Ah, perhaps you are missing either the url_title= parameter or entry_id= parameter in your Channel Form tag?

Post your Channel Form tag here in a code block if you already have that and it’s not working.

       
restos's avatar
restos
54 posts
9 years ago
restos's avatar restos

Sorry I was missing the entry_id.

Thank you for your help.

Jose

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

No problem, glad it was that simple, and sorry for the confusion!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.