ocr_a Posted January 3, 2016 Share Posted January 3, 2016 Hi, i want to use the new front-end editing feature of pw instead of fredi module to let members of a site edit their own page. i know it's in development, but just wanted to check your opinion and/or give feedback. i am logged in as a superuser with all rights, but the following doesn't work. probably i missed something? <edit logo> <img src='{$page->logo->url}' /> </edit> -> the image is not double clickable -> no edit field appears <edit text> <div>{$page->text}</div> </edit> -> normal edit field with save / cancel opens, but no ckeditor, which is set for this field -> changes alerts: No changes to save <edit field='title,text,logo,websiteurl'> <h2>{$page->title}</h2> <div>{$page->text}</div> <img src='{$page->logo->url}' /> <span>{$page->websiteurl}</span> </edit> -> nothing happens when double clicking the area, the context cursor appears. Docs found here: https://processwire.com/api/modules/front-end-editing/ will there be an option to change the action? <edit action='doubleclick'> </edit> <edit action='click'> </edit> <edit action='noaction'> </edit> last thing is something like: all fields are open on page load and a save/cancel button appears. thanks, ocr_a Link to comment Share on other sites More sharing options...
modifiedcontent Posted July 7, 2018 Share Posted July 7, 2018 I sometimes get similar errors. In most sites or pages front end editing works perfectly, but sometimes it doesn't. I have no clue what causes this. The 'no changes to save' error is supposed to show up when the page is not "is_array($fields)": Spoiler if(!$this->page || !$this->page->id) { $data['error'] = "Page is not available for front-end edits"; } else if($pageID != $this->page->id) { $data['error'] = "Edited page does not match current page ID ($pageID != {$this->page->id})"; } else if($this->wire('languages') && ($langID != $user->language->id)) { $data['error'] = "Edited language does not match current language ($langID != {$this->user->language})"; } else if(!$this->page->editable()) { $data['error'] = "Page is not editable by this user (page $pageID, user {$this->user->name})"; } else if(!is_array($fields)) { $data['error'] = "No changes to save"; } else { // okay to make edits I have no idea what that means... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now