You would need to use the model to grab all child pages, loop through them, then grab their variables like so:
$root = 'our-firm'; $CI->fuel_pages_model->db()->like('location', $root.'/', 'after'); $children = $CI->fuel_pages_model->…
Sounds like someone else may have had a similar issue. Is it possible to copy the Bootstrap CSS rule as mentioned here:
http://forum.getfuelcms.com/discussion/1519/twitter-bootstrap-nav-with-fuel_nav-how-to#Item_5
You could add the following to your MY_fuel.php file:
$config['settings']['site_name'] = array(); $config['settings']['logo'] = array('type' => 'asset');
Note that "site_name" will overwrite the value of the MY_fuel.php value (at the top of the …
If you want to do it statically, add the following to the fuel/application/views/_variables/nav.php
$nav['our-firm'] = array('label' => 'Our Firm'); $nav['our-firm/contact'] = array('label' => 'Contact', 'parent_id' => 'our-firm'); $nav['ou…
As an FYI, I believe the README on GitHub mentions adding to the $config['dashboards'] config:
https://github.com/pierlo-upitup/google_analytics
Also, if you use FUEL's command line tool to install, it will automatically add it to the $config['modu…
Out of curiousity, does the error go away if you replace line 1294 with the following:
$output = preg_replace('/(]*>)/', '"\\1\n".'.$head_markers, $output);
What version of FUEL are you using? If it's 1.0 you can just use:
$this->fuel->pages->render('', $vars, $page_init);
http://docs.getfuelcms.com/libraries/fuel_pages#func_render
You can use a different variable in the nav.php file and then specify that variable name using the 'var' parameter:
fuel_nav(array('var' => 'my_nav'))?>
Is this a form_builder that you've created in your own controller? If so, you'll need to be sure to load the custom fields:
// load custom fields $this->form_builder->load_custom_fields(APPPATH.'config/custom_fields.php')
1. Are there any JS errors being reported in the console?
2. What JS files are missing?
3. Are you overwriting any of the fuel configuration $config['fuel_javascript'] values in your MY_fuel.php file?
4. What URI path are you seeing these errors?
5…
The body class variable is just a default variable in the main layout that can be used to add a class to your body tag. Note that all layout variable fields are optional and it is recommended that you change the default main layout to suite your nee…
If you extend the Fuel_base_controller, it will check that you are logged into the CMS. If this is a controller that you need for the front end, you can just use the normal CI_Controller to extend.
It sounds like you need one form for your orders, and a second form for the refund. For the orders form, I would use your orders model's form_fields method like normal and perhaps add a button as one of the fields or a link that someone could click …
Happy New Year to you too!
For the CSS, you can't really remove the fuel.min.css without actually removing it from the fuel/modules/fuel/views/_blocks/fuel_header.php file. If you are looking to overwrite certain styles, I would use the $config['xt…
It's probably being added in the base_module_model::_list_items_query method that is used in the list_items method. This method looks at the model's filters property to create certain where conditions. I'd poke around in that method.
Are you wanting to completely replace fuel.min.css or simply overwrite certain rules? If you want to overwrite certain rules, you can use the $config['xtra_css'] configuration parameter in your fuel/application/config/MY_fuel.php file.
$config['xtra…
The correct syntax would be $this->fuel_pagevariables_model->list_items() and yes, it would need to be loaded first like other models:
$this->load->module_model(FUEL_FOLDER, 'fuel_pagevariables_model');
In general, most of the important documentation can be found under the General Topics in the user guide. Many of the classes and helpers are already loaded or used automatically by controllers (e.g. the fuel/modules/controllers/module.php controller…
raham,
What does your controller method look like and what was the URI path you were using to access the page?
im905513,
The header and footer won't be there because you are simply loading the view file. To have the header and footer from the adm…
By default, it should just insert a link to that asset.
There is, however, an option you can pass in the third parameter of options called "inline" that will pull in the CSS and/or JS file inline. This can be set in the fuel/application/config/ass…