Editing a page from outside that page

edited July 2011 in Feature Requests
I recently had to code a little hack to be able to edit page fileds, from a custom view, or another page. There's a check in the javascript which makes sure that the inline editing form you're requesting matches the current page, so it doesn't work from any other place. It would be good if an option was added to do just that.

Comments

  • edited 5:42PM
    Could you point out in the code where you needed to make changes so I can better understand. Thanks.
  • edited 5:42PM
    Basically what I did was I added my own markers, similar to the ones that Fuel_page generates and then I added extra Javascript to call initEditors() to include those markers.

    The javascript check I mentioned is on edit_mode.js, initMarkers(), line 63:

    if (($this.attr('data-module') == 'pages' && pageId != 0) || $this.attr('data-module') != 'pages')

    I can't really remember what what was wrong with the markers but it was something on render_marker() on Fuel_page.php.
Sign In or Register to comment.