Editing pages in CMS

edited September 2015 in Modules
I have a custom controller that loads the page & language I need.

I made an hierarchy of pages under the views:
de/page1
de/page2

I load them by controller page/page1

But now I want to edit the specific content of that page. I have 2 blocks that I use all the time: a header and a footer.
Page1 is looking like this:

<?php $this->load->view('_blocks/de/header')?>
// HERE I WANT TO GET THE EDITABLE CONTENT OF THE PAGE...
<?php $this->load->view('_blocks/de/footer')?>


How can I get the pages in the CMS (with my own controller)? And only edit the content-part of my page?

Comments

  • edited 2:41AM
    The default main layout has this setup already for you if you want to look at it (views/_layouts/main.php). It uses the $body variable that has a correlating body page variable specified in the layout fields found in fuel/application/config/MY_fuel_layouts.php

    Check out the section using Layouts in the CMS:
    http://docs.getfuelcms.com/general/layouts
Sign In or Register to comment.