Luis Posted April 1, 2013 Share Posted April 1, 2013 What it does: turns the content of $page->body into a clickable area and gives the ability to frontend edit the content via tinyMCE Release: In the next days. (my aim is tomorrow evening) finished with v0.0.1 https://github.com/Luis85/PageInlineEdit/ 7 Link to comment Share on other sites More sharing options...
pwired Posted April 1, 2013 Share Posted April 1, 2013 I think clients and end users are going to like this. Link to comment Share on other sites More sharing options...
MichaMichaMicha Posted April 1, 2013 Share Posted April 1, 2013 What it does: turns the content of $page->body into a clickable area and gives the ability to frontend edit the content via tinyMCE Release: In the next days. (my aim is tomorrow evening) Oh my, I was literally about to start on that this morning. Looking forward to the result Link to comment Share on other sites More sharing options...
photoman355 Posted April 1, 2013 Share Posted April 1, 2013 Nice. In context editing is actually a built in feature of CKEditor, see demo here. I was going to build something similar using the API to add a save call to the front end. I'd be interested to look at your code once the module is live. Did you have any difficulty putting this together? Link to comment Share on other sites More sharing options...
Luis Posted April 1, 2013 Author Share Posted April 1, 2013 thanks for your responses @photoman355 : The intention why I choose TinyMCE is pretty simple, the user knows tiny from the backend, so he might feel comfortable to tiny. I didn't faced any problems with integration so far, just finished the jquery thingy to add the needed divs, a's etc... Just tried to keep it on a very simple and basic approach, just click on the $page->body content and change the text on the fly, not more. For further editing you still have to go to the backend. Further editing just feels wrong on the frontend. Link to comment Share on other sites More sharing options...
photoman355 Posted April 1, 2013 Share Posted April 1, 2013 Thanks Luis, sounds pretty straightforward. The CKEditor module is in beta at the moment but inline mode has been enabled to work on the backend. With this in mind it should be fairly easy to bring it over to the frontend. I agree the further editing should be in the backend until someone figures out how to do this in a user friendly way. There is the Admin Bar module but it seems to be more geared towards a site built with pages. It doesn't work as well for one page websites or sites built with widgets. Link to comment Share on other sites More sharing options...
Luis Posted April 1, 2013 Author Share Posted April 1, 2013 v 0.0.1 up on gitHub and pushed to module directory Link to comment Share on other sites More sharing options...
ryan Posted April 2, 2013 Share Posted April 2, 2013 Looks good Luis! Thanks for making this. One suggestion I would have (for now or a future version) would be to remove the dependency on a field named 'body'. Not everyone has a field named 'body', and others may have one or more other textarea fields they want to use this module with. So you could take an approach of finding all the textarea fields using TinyMCE and make them editable from your addDivs method: foreach($page->template->fieldgroup as $field) { if(!$field->type instanceof FieldtypeTextarea) continue; if($field->inputfieldClass != 'InputfieldTinyMCE') continue; // if you reached this point, this is a field that can be made editable } 3 Link to comment Share on other sites More sharing options...
Luis Posted April 2, 2013 Author Share Posted April 2, 2013 on my todo. Thanks Ryan Link to comment Share on other sites More sharing options...
alchime.net Posted April 24, 2013 Share Posted April 24, 2013 http://www.hongkiat.com/blog/html5-editable-content/ Might intererest you. Link to comment Share on other sites More sharing options...
Joe Posted December 15, 2013 Share Posted December 15, 2013 Hi, just for a test I have installed the Frontend Edit module in an out of the box PW site. The module is installed but nothing happens, I mean I cannot find any new editing function. Maybe I´m missing something here? Thanks. 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