Create CMS pages through a custom module
I extended fuel_page_model and my purpose is to create CMS pages through my application and the pages should be accessible in front. I am going to use the existing tables related to pages. The fields which I am interested in are: values for page_title and body and active. I don't understand how pages work in FUelCMS eve after I read some documentation.
I need to create a page (not as fuel admin) and then to access it through a link where I should see the content from WYSIWYG.
I am not sure if it is clear what I meant here, but I can explain what I did so far.
Comments
You can use the fuel_pages_model and the fuel_pagevariables_model respectively to access their data. The fuel_pages_model can return a page record which has a reference to the variables like so:
$this->load->module_model(FUEL_FOLDER, 'fuel_pagevariables_model'); $page = $this->fuel_pages_model->find_by_location('about/history'); foreach($page->variables as $var){ echo $var->name; }
What location should I set in order to be able to access all the CMS pages? Or how should all these things work for the client?
Am I missing something here?