I'm sorry but I'm not quite sure I understand what you are proposing and what scenario you are using. Do you have a foreign key (e.g. my_foreign_table_id) that you want to map a relationship to. If so you, you can set the foreign_keys property on th…
This is why the example above targeted the post. The $values array only includes values that will be saved. You can get the post data using the normalize_save_values method:
function on_after_save($values){ $posted = $this->normalize_save_va…
Ahh... dd/mm/YYYY isn't recognized by the strtotime function as a proper format but I believe dd-mm-YYYY is:
http://stackoverflow.com/questions/2891937/strtotime-doesnt-work-with-dd-mm-yyyy-format
You can add the check box in your model's form_fields method. Then in your model hook look for that checkbox value in the post to signal the deletion:
function on_after_save($values){ if ($this->input->post('delete_file')) { …
You may also need to modify the fuel/application/config/mimes.php file to account for your audio file's mime type and/or add the the following to your fuel/application/config/MY_fuel.php file and modify the "assets" to include any extensions (note t…
That sounds like you may want to use the hooks as suggested above. There is an on_after_post hook method you can use on your model to manipulate both the uploaded file (if you want) and the data.
function on_after_post($values){ $record = $this…
I'm not quite sure I understand what you are asking. What type of field are you talking about? Is it perhaps wanting to manipulate what gets saved? If so, have you looked at model hooks:
http://docs.getfuelcms.com/general/models#hooks
Not out of the box. You would need to add an additional field to the fuel_blog_posts table to capture that information and modify the blog_posts_model::form_fields method.
If you just want to display the information you can set the following parameters for your module in your fuel/application/config/MY_fuel_modules.php file:
$config['modules']['my_module'] = array( // ... other config... 'item_actions' => …
The example you provided is the correct location to put "display_input" => TRUE. The file input field should also have an associated input field now.
To be able to upload the mp4 file type, you will need to modify the "editable_asset_filetypes"…
There is a "replace_values" parameter you can pass to the field. Often times it is just the $values array but be careful with that because on a new record, the $values array is empty.
$fields['item_file_name'] = array('type' => 'file', 'upload_pa…
Sure. I'd take the approach of thinking of your project from a CodeIgniter standpoint first and figuring out what models you may need (threads, comments, users, etc). Then you can hooks those models up to the CMS as simple modules.
Perhaps a good e…
This area of the documentation provides some help:
http://docs.getfuelcms.com/general/forms
If you want to look at the code, the fuel/modules/fuel/controllers/module.php file uses it in a few spots.
Also, there is also an advanced forms module you…
That MY_Parser file shouldn't exist either and has been removed. The other files should remain. The parser was overhauled in 1.3 to the Fuel_parser class which allows for different parsing engines including Twig.
That field will create a file field type which only uploads a file. You can specify the "display_input" parameter to TRUE on it which will create a field with the name of video that can be used to store the value to the database (currently not displ…
When you say the display preview, are you referring to the "View" button at the top in the admin? IF so, you can create a "preview_path" method on your model. It get's passed an array of the data values for that particular record and the preview_pat…
If you just want to render a view file from the blog module you can do use the "module_view" method on the load object as in the following:
$this->load->module_view(BLOG_FOLDER, 'my_blog_view', $vars);
$this is a reference to the global CI obj…
If the update was made by simply replacing the fuel/modules/fuel folder and not using GIT then be sure to delete the MY_parser.php file from the fuel/application/libraries/MY_Parser.php
That sounds like you will want to create simple module under an advanced module. You can generate the simple module under a particular advanced module by passing a second parameter. In the example in the documentation under Advanced Modules, the adv…
That sounds like a simple module which you can think of as a wrapper around a table. I'd recommend reading the following areas of the documentation to become familiar with it:
http://docs.getfuelcms.com/modules/simple
http://docs.getfuelcms.com/modu…
What's the name of the module and is it a "simple" module or an "advanced" module?
http://docs.getfuelcms.com/modules/simple
http://docs.getfuelcms.com/modules/advanced