Does FuelCMS have a function to embed a Fuel Page (saved in the DB) into a CI view file?
Hello,
I was wondering if in the FuelCMS API, there is a way to load the contents of a FuelCMS page (one that is stored in the DB) into a view file, similar to how you can load view files or blocks using the fuel_block() function. Here is my example:
Inside a view file (signup_view.php):
<?php $this->load->view('user-agreement'); ?>
This would load the view file called "user-agreement.php". What I would like the ability to do is change this code to something like this:
<?=fuel_page('user-agreement'); ?>
My vision is to have an online-editable page for this piece of content, but also be able to embed it within a scrollable window on my signup page. Right now I'm just loading in the static view file, so when a web editor goes in and changes the content of the page in the CMS, the view file won't get updated, so they would be out of sync. I'm looking for a way to reference the content of that page in the CMS from the "signup_view.php" view file.
Any way to do this?
Erik
Comments
$page_init = array('location' => 'user-agreement'); $this->load->module_library(FUEL_FOLDER, 'fuel_page', $page_init); $this->fuel_page->render();
I like the idea of a fuel_page function.
Would be AWESOME to see a fuel_page() function. I suppose I could load the page in manually via SQL though...
I suppose you could also create a page in the admin and use AJAX to load it in too. The page could use a layout that doesn't include the header/footer info.