To query the pages_model, you can do the following:
$CI =& get_instance(); $CI->load->module_model(FUEL_FOLDER, 'pages_model'); $location = uri_path(); $page = $CI->pages_model->find_by_location($location);
However, find_by_location…
I'll take a look at the importing with if conditionals. The importing isn't perfect but meant to get a majority of the php code scenarios found when importing view files.
A couple things to test:
1. What if you change the conditional to something like this {if $catId == "test"}?
2. Is the $catId in the site_url function possibly causing the problem?
Hmm... I'm not sure if getting 100+ inline editing markers to load quickly is going to be easy to do. The file that does a lot of the inline editing rendering is the fuel/modules/fuel/assets/js/fuel/edit_mode.js and may want to look at disabling the…
The last suggestion was just to simply turn inline editing off for that page to prevent the slowness which sounds like is not an option for what you are wanting to achieve. When you say line 592-601, what file are you referring to?
I think this may have something to do with this line in the Photos model form_fields method and how MY_Model processes in in the parent::form_fields:
$related = array('photo_categories' => 'categories_to_photos_model');
What if you change the col…
Perhaps try the following before calling the get_posts_by_page():
$this->blog_posts_model->where_in('fuel_blog_categories.id', $categoryIds); $this->fuel_blog-> get_posts_by_page();
Fuel_blog is just a wrapper around the different models…
Tough to say, however, I can point you in a direction to debug I think which would be around lines 680-720ish of the fuel/modules/fuel/module.php file. There it loops through the $_FILES array to try and grab the name of the uploaded file to insert …
The language file needs to be loaded first before that will appear. To load you can do the following:
$this->load->module_language('modulename', 'modulename');
This is assuming the module the language file is in a module of "modulename" and is…
You will have to do a database call to get the options and insert them with something like the following:
$options = array(); if (defined('FUEL_ADMIN')){ $CI =& get_instance(); $options = $CI->drop_down_lists_model->options_list…
You should be able to overwrite the sitevariables_model without having to do it in the actual code by creating your own model that extends the sitevariables_model and then overwriting it in the config using the $config['module_overwrites'] in your f…
I never got around to doing that did I. Let me try and recall the installation steps though:
1. Download the filemanager from GitHub link and place the filemanager folder in fuel/modules/fuel/assets/js/editors/ckeditor/
2. Change the scripts/filema…
You can create a layout in your fuel/application/config/MY_fuel_layouts.php file like so (note the site_logo and site_logo_upload fields respectively):
$config['layout_fields']['main'] = array( 'copy' => array('copy' => lang('layout_field_m…
With regards to the values being passed to the form_fields method, the values array is getting to the form_fields method, but you would need to set the values for each field like so:
function form_fields($values = array()) { $fields = parent::for…
It looks like there was an issue with that button still appearing even if they don't have the permission. I've posted an update to the repo to fix that.
To set edit, publish and delete permissions for a module, you must specify them in the module's…
The only way to do precedence sorting with inline-editing is by updating each items precedence field (there is no rearrange feature for inline-editing).
For insight into how it is done in the backend, the fuel/modules/fuel/js/fuel/controller/BaseFu…
Hmm... I'm assuming that the images folder is writable and you are attempting to upload into the assets/images folder correct? Sometimes that error message will appear because it will run the xss_clean function on the uploaded image if the module pa…