As an FYI, you can add the 'first_option' value to your options in the $field declaration array like so:
$fields['silo_id'] = array('label' => 'Silo', 'type' => 'select', 'options' => $silo_options, 'required' => TRUE, 'first_option' =&g…
In your situation, the 'editable_asset_filetypes' config parameter will need to be changed to include those mime types for your directory "_upload". This is used by FUEL to make sure that the proper file types are being uploaded to the correct folde…
There is a $filter_value property that you can set on the model. This is done in the admin in the fuel/modules/fuel/controllers/module.php items() method.
Can you post the code you are using in your form_fields method?
Also, if you are overwriting the models options_list method, the signature should look something like the following:
public function options_list($key = NULL, $val = NULL, $where = arr…
You can add a property to your model called $filters which will tell it which fields to search in automatically:
public $filters = array('title', 'content_filtered', 'fuel_users.first_name', 'fuel_users.last_name');
Additionally, there is a "filter_…
I believe you need to add the "record_class" property to your model like so because the model is looking for record classes without the "s" and not those without an "es":
class Pages_model extends Base_module_model { public $record_class = 'Secti…
You could do the same as you did for the mult-select. Although the dropdown is automatically created with the $foreign_keys property, it is still available in the form_fields method in the $fields variable to manipulate the options value (you an pri…
You should be able to make it a property of your news_item_model as previously displayed above by declaring the property on the record model and adding it into the _common_query() join.
If you just want to associate the article to a single silo try adding this to your News_model as a property:
public $foriegn_keys = array('silo_id' => 'silos_model');
I don't think you need the "silos_to_news_model" because you are only associati…
As an FYI, there is now a method that allows you to make requests on the controller and it will look for model method with a prefix starting with "ajax_". For example:
$.get('my_module/ajax/my_method', {limit: 5}, function(html){ console.log(html); …
I found the issue and just posted a fix. If you change Primary to the number 1 (not a string), it will work. Or you can download the latest:
https://github.com/daylightstudio/FUEL-CMS/commit/28584e7d604d631ef0c123cd4357373c863985d1
I'm not quite sure I understand the question but let me try. Are you wanting to get the name of the silo as opposed to the ID value (which I'm assuming is saved with the news item)?
If so, I'd recommend adding a "silo" property to your News_item_mo…
Try adding the following to your model.
public $parsed_fields = array('content', 'content_formatted');
I've updated the tutorial to help with this: http://www.getfuelcms.com/user_guide/modules/tutorial
Are you using markItUp! or CKeditor for your WYSIWYG editor?
If markItUp!, there is a fuel/modules/fuel/assets/js/editors/markitup/jquery.markitup.set.js file that allows you to change the buttons for your textareas.
For CKeditor, there is a file…
I actually just got a pull request for that issue today:
https://github.com/daylightstudio/FUEL-CMS/pull/109
Try this fix out to see if it works. I haven't merged it in yet to the codebase.
I think you are on the right track by creating a CheapFares class to do all the heavy lifting and then passing that off to the view file in your controller. Dwoo templating syntax is used if the view is managed in the admin through input fields. It …
Take a look at line 27 of the Tank_auth library class. You may need to change that to load from the auth module like so:
$this->ci->load->module_config('auth', 'tank_auth', TRUE);
Hmm... I just installed tank_auth with these steps and was able to browse to the welcome page where it says "Hi, admin! You are logged in now. Logout"
1. moved everything from the "tank_auth/application" directory into the folder "fuel/modules/auth…
I think it would be easier to create different databases for each one. You could dynamically set the database config values based on the domain or some other site specific variable. You wouldn't need to touch anything in the FUEL modules folder, jus…
I would definitely be interested in the patch. Also, I totally agree about the tests. The Tester module was a way to make it a little easier (and sometimes even fun), however, it does run on MySQL and it should use something like sqlite. We don't ha…