Preview File

edited February 2014 in Modules
Why the preview is always loading the main layout instead of using the current page layout?

Comments

  • edited 12:11PM
    Fuel uses the file
    fuel/application/views/_admin/_fuel_preview.php
    to preview. you can configure it to use the layout you want it to use, by default it is configured to use $this->load->view('_layouts/main', $vars);

    Hope this helps.
  • edited 12:11PM
    There is also a "preview" parameter you can set in your form field to specify a different view file. It must be located in the fuel/application/views/_admin folder.
    http://docs.getfuelcms.com/general/forms#wysiwyg
Sign In or Register to comment.