Search the Community
Showing results for tags '3.0'.
-
Hi there, I know there is a possibility to open the Front-End Editing window with one click if if change the class of the containing div from "pw-modal-dblclick" to "pw-modal-click". So how can I have a button/link that opens the frontend editor with a single click? I want to use a code similar to this: <edit field="title,user_image,facebook_url,description"> <a href="#" class="waves-effect waves-light btn pw-modal-click">edit this page</a> </edit>
-
Normally I output some fields with fallback values as follows (with Headline field filled in in this case): $content .= "<h1>$page->get('headline|title')</h1>; How would you approach front page editing in the template for this (B/C/D method)? $content .= "<h1>$page->edit('headline|title')</h1>"; results in the Headline outputted but editing doesn't work. $content .= "<edit title>"; $content .= "<h1>{$page->get('headline|title')}</h1>"; $content .= "</edit>"; Results in the Headline outputted but double click will edit the Title field instead. Has anyone succeeded this way?