Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

admin

About

Username
admin
Joined
Visits
8,800
Last Active
Roles
Administrator

Comments

  • What does your table look like and associated model's form_fields method look like?
  • Can you try merging in the develop branch. It has some fixes that may help with that. https://github.com/daylightstudio/FUEL-CMS/tree/develop
  • What version of FUEL are you running (you can find out in the fuel/modules/fuel/config/fuel_constants.php file at the top the FUEL_VERSION constant)?
  • Is the data being sent in the $posted variable an array? The MY_Model::serialize_field_values() method will only serialize array data.
  • The documentation is incorrect and "find" returns an array."get" will return an object. If you are wanting to ensure that the page is being pulled from the cms instead of a view, add the following initialization parameter. $this->fuel->pages-&…
  • Thanks for the report. I've posted a fix for this to the fuel_search_model: https://github.com/daylightstudio/FUEL-CMS-Search/commit/facb1ab634221386d560143b583331f2111336e4
  • No it doesn't. Thanks for the report. That should be fixed now.
  • That seems to say that there is output perhaps a space or return at the top of a file.
  • It sounds like you need to save to the primary table and get the idea (which can be found in the $values['id'] in the on_after_save model hook). Use that for the id instead of the $posted because it automatically gets updated to the newly saved ID b…
  • Thanks for the heads up. Those changes have been made.
  • You can do that by assigning the 'value' attribute on the form field. I've modified the answer above to include that. It assumes that there is a method on your model called "get_todo_value" (which it can be named whatever). Basically that method sho…
  • Codeigniter has the get_file_info() function that is found in the file_helper (so you may need to load the file helper) http://www.codeigniter.com/user_guide/helpers/file_helper.html#get_file_info
  • It sounds like you want to use either the repeatable template field or the embedded list field types. The template field type will allow you to create repeatable form fields that can be reordered. The embedded list will provide a list view table wit…
  • You can use the fuel object anywhere by accessing the main $CI object (get_instance() function) or using $this->fuel in the controller (which is the CI object). Also, you can pass false in the constructor of your extended controller to bypass a…
  • In your fuel/application/config/MY_fuel.php file, the first config value should be "fuel_path". Is your's set to $config['fuel_path'] = 'stu/'; ? If so, change that to to $config['fuel_path'] = 'admin/'; This will allow you to access it at /admin A…
  • What's the error you are seeing and how big is the database?
  • You would need to modify the fuel.css file and the view files found in the fuel/modules/fuel/views folder The main fuel/modules/fuel/views/_layouts/admin_main.php file is the main layout file but there may be a lot of fuel/modules/fuel/views/_block…
  • Using the model hook for saving is a good idea. There is also a "save_related" method that can be called in the on_after_save hook that has the following signature and is found on MY_Model (the array key/value parameters are admittedly a little stra…
  • You can add additional validation rules in the forms configuration file. There currently isn't a way to do that in the CMS. The documentation gives an example (look at the kitchen sink example). You can also include additional javascript if you have…
  • If you look in the fuel/modules/search/controllers/search.php controller file, you can see how it simply is just calling: $this->fuel->pages->render('search', $vars); FUEL allows you to set the layout both by passing a $vars['layout'] value…
  • You can specify a different layout for your view file by specifying the following at the top of the search view: <?php fuel_set_var('layout', 'search_layout')?>
  • Hmm... I wasn't able to replicate that error when changing the config. Did you copy it to your main application/config folder and change it there?
  • If you set the overwrite value to FALSE, it should work. The names will be unique so the overwrite property won't have any effect.
  • You could do something like: <?php $form = $this->fuel->forms->get('form_name'); ?> form_action?>" method="POST">
  • You can automatically process the form by using the form tags "action" attribute to point to forms/process/{formname}. Calling the form function will also generate the form with the proper action value in the form tag. You can change this value but…
  • Try using the "boolean_fields" model parameter to specify an enum with two values or a boolean field type: public $boolean_fields = array('my_enum'); Fields with the name of "active" or "published" are automatically set to toggle in FUEL.
  • I'm not sure I quite understand what you mean by "access the defined mail recipient". The After Submit tab does have that information as to where to send the email.
  • You can pass in a $key and $val parameter to the options_list if you are using it ouside of relationships. If the options are generated by a relationship, you can simply overwrite the 'options' parameter in your form fields array to use whatever you…
  • use return $form_builder->create_textarea($params);