For the append to be properly inserted in the hierarchy, the "parent_id" value needs to be the database fuel_navigation "id" int value if you are using the CMS to generate the menu:
$append[] = array('id' => 'about/history', 'label' => 'Histor…
With regards to the append, that appears to by the correct syntax. If you add that to your $nav array, does it show up?
The "style" attribute is used to add classes to the item "li" elements. It works as an array syntax that can be nested. So for e…
That field type is a multi. You can set it in your form_fields method like so:
public function form_fields($values = array(), $related = array()) { $fields = parent::form_fields($values, $related); $fields['my_field']['type'] = 'multi'; …
Unfortunately, there isn't the ability to wrap your "ul" tags in a "div" without modifications to the Menu classes "container_tag" functionality. Would it be possible to use a "ul:before, or ul:after" CSS pseudo elements to get around that.
I don't…
I think this line is incorrect:
$CI->load->library('Mobile_detect'); $detect = new $CI->mobile_detect();
You want something like this:
$CI->load->library('mobile_detect'); // I would change the casing of the class to Mobile_detect $de…
Does it work if you just put it in your libraries folder?
You may need to add the package path if you are using the third_party directory.
http://ellislab.com/codeigniter/user-guide/libraries/loader.html
FUEL 1.0 provides a "block" field type which lets you select from a dropdown of blocks while creating a page. The blocks can have layout fields tied to them:
http://docs.getfuelcms.com/general/layouts#layouts_block_layouts
I just downloaded the zip file here:
http://ckeditor.com/addon/showblocks
And added it to:
fuel/modules/fuel/assets/js/editors/ckeditor/plugins/
And it seemed to work with this configuration you had plus the addition to the extraPlugins:
$config[…
1. When you say old image isn't deleted, isn't it uploading with the same name and needs to be overwritten?
2. It's still saving because image_file isn't a field in the database correct? If so, it isn't looked at when validating required fields. To …
Here you go... just posted it on GitHUB... let me know if you have any issues:
https://github.com/daylightstudio/FUEL-CMS-Sync-Module
http://docs.getfuelcms.com/modules/sync
So in this case you want to overwrite the model's form_fields method like so:
public function form_fields($values = array(), $related = array()) { $fields = parent::form_fields($values, $related); $fields['image'] = array('type' => 'file', 'fi…
Try setting the field type to "file":
$fields['my_file'] = array('type' => 'file');
If that still doesn't work, try adding the parameter 'ignore_representative' => FALSE
If you have a menu structure that is dependent on module data, then the menu items need to be added before rendering. One way to do it is to create the additional nav items in an array and use the "append" parameter in the fuel_nav function.
Are the images going to change on a per page basis or will they be the same across every implementation of the block?
If you want them to be the same across all the pages, then the the way you suggested is how I would advise. Create the module, the…
1. For the profiler to work, you need to add a profiler config array:
http://ellislab.com/codeigniter/user-guide/general/profiling.html
2. There is a $config["ck_editor_settings"] in the fuel/application/config/MY_fuel.php file that has additional …
If you aren't able to get rid of the "index.php", it's usually one of few things:
1. .htaccess is not properly setup for your web directory (http://httpd.apache.org/docs/2.2/howto/htaccess.html)
2. The mod_rewrite apache module isn't installed (http…
If you are wanting to integrate with a social API, I'd recommend looking at it from a CodeIgniter perspective. Depending on the social network you are interested in, there's is more then likely a CodeIgniter library that you can include in your fuel…
You can use the 'model_params' property which should be an array of the parameters that we are passing to what will eventually be the options_list method on the fuel_tags_model. In this case, the first parameter is the value of the options list, the…
The normal installation would have a CodeIgniter index.php bootstrap file, an "assets" folder, a "fuel" folder (that contains all those folders you listed above) and a .htaccess file. Normally, you put all that on your web server root or in a sub fo…
If you are wanting to get to the FUEL dashboard, you'll need to add "fuel" in the path like so:
http://domain/fuel/dashboard
If you are having trouble with that, make sure that the admin is enabled in the fuel/application/config/MY_fuel.php file (a…