[Question] How to use different preview layout?
Fuel CMS 'Posts' and 'Blocks' textarea come with preview which using the 'views/_admin/_fuel_preview.php'.
Is it possible to use different '.php' preview file for 'Blocks' and each different layouts using different preview file?
Comments
http://docs.getfuelcms.com/general/forms#wysiwyg
Additionally, it passes a module and field parameter to the _fuel_preview.php file which you can use to add conditional preview logic based on those passed values.
For an established module's fields like the Block module, that you want to overwrite, you'll need to create Model that extends the Module's model and overwrites the form_fields method with you changes:
http://docs.getfuelcms.com/modules/simple#overwrites
(Also talked a little bit more here in a different post:)
http://forum.getfuelcms.com/discussion/comment/9154#Comment_9154
The logic for the preview is in the fuel/modules/fuel/controllers/preview.php file