Is this in your own module? If so, in your model, specify the fields you want template parsing performed using the parsed_fields model property:
public $parsed_fields = array('content', 'content_formatted');
In the example, this says to parse the re…
With regards to using a different editor on a per field basis, there is an "editor" parameter you can pass to your form field in which you can specify "markitup" or "wysiwyg":
http://docs.getfuelcms.com/general/forms#wysiwyg
Regarding the image_pat…
There is an issue with that method if you were using model name that was different then the table name. A fix was posted yesterday in the develop branch which will be in the next patch release:
https://github.com/daylightstudio/FUEL-CMS/commit/8504…
There is also a "preview" parameter you can set in your form field to specify a different view file. It must be located in the fuel/application/views/_admin folder.
http://docs.getfuelcms.com/general/forms#wysiwyg
The MarkitUp! editor supports the following functions:
assets_path()
pdf_path()
img_path()
The asset_helper's "docs_path()" function can be enabled if it's added to the fuel/application/config/parser.php
CKeditor currently only supports the img_p…
When you say access to your 'css' and 'js' in your layouts, do you mean you want to edit the actual CSS and Javascript in for your layout in the CMS? Or are you simply wanting to include CSS and Javascript in your layout files (e.g. the js or css fu…
In that case, I would use a foreign_key property instead of has_many property:
// in the projects model public $foreign_keys = array('category_id' => array(FUEL_FOLDER => 'fuel_categories_model'));
// in the projects model public $foreign_keys…
You will have to overwrite your list_items method and use active record to do any necessary joins and selects. Your select should include the id value you identify with each record.
function list_items($limit = NULL, $offset = NULL, $col = 'post_dat…
Hmm... version .9.3 doesn't have a Fuel_advanced_module class. It's only 1.0 that has it.
Are you looking for something like a where condition with the following:
$where['fuel_tags.slug !='] =$tag;
If the CSS and js is specific to a field, you can create a custom field to associate those files with your field, or you can use the "js" and "css" parameters on a field to load in javascript and css files:
$fields['my_field']['js'] = array('my_js')…
Hmm... I'm having a hard time replicating that issue. It sounds like things may not be getting saved to the fuel_relationships table. Can you verify that that is the case? If that is the case, would you mind doing a little debugging on the MY_Model:…
So in this case, your album module's form_fields method would need to include the code to display the template field. The trickier part will be since you are not storing this in a single serialized field, you'll need to setup an on_after_save hook t…
Pages created in the CMS or are using the Opt-In Controller method get routed to the fuel/modules/fuel/controllers/page_router controller which would explain why that controller variable isn't coming through. Instead of setting a variable on the con…
I'm not quite sure I follow but will give it a shot. If you are creating a simple module, you can make a module display only by setting the "displayonly" property on the MY_fuel_modules.php for your module which will make all the values display only…
Thanks for the report... it looks like all the old CI user doc links are now broken and pointing to ellislabs site instead. I'll put that in the next release.
I just posted a fix in the develop branch on GitHub that will have the next round of patch fixes in it:
https://github.com/daylightstudio/FUEL-CMS/tree/develop
Think of the Table class (MY_Model) as a way to return one or more record classes. Put methods on your record class that you think make sense at the record level. One example is if you have a first_name and a last_name field, you could create a meth…