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

  • It looks like BaseFuelController isn't getting the module property set in it. The code that sets the path to the URL that redraws the table is in the BaseFuelController around line 41 and 42 ('tableAjaxURL'). I would do a console log on the 'initObj…
  • A couple questions: 1. What do you mean by it "crashes"? 2. What is uri_path() echoing out (e.g. 'activities/activity')? 2. What is your controller's name and what is the methods on it that you are trying to use (e.g. controller name is 'activities…
  • In your layout you can just specify the body area to be that top area above the news. Then you can just add that news area as part of the layout right below the <?=fuel_var('body','')?> but using php code like so: <?php $news = fuel_model('…
  • You could try using the following to grab the form_builder instance and manipulate it (although some things are set after the call to the form_fields() method and you may not be able to change): $CI =& get_instance(); $CI->form_builder->..…
  • I think what you want is possible, but so that I'm clear, do you want the news items only editable on the homepage? Or is there a body section on the site you only want editable for the client? Or both?
  • FUEL's validator is a little different and you would need to loop through the array and use add_rule to add validation.
  • The fuel_users table is specific to logging into FUEL CMS and so any type of front end permissions would probably want to be done in a separate table/model. You could then create a controller (the normal CI way) to handle authentication. If you wou…
  • I doubt it's in there... I actually forgot about that until the other day when looking into another forum post.
  • What do you mean by not work? Is it throwing an error, or just not returning data etc? I'm not seeing anything immediately that would be a problem and something like that should work.
  • The submit value can also be a tag
  • I guess I'd have to see your layout/pages to fully understand. The layout determines the editable variables you can have on your page. However, remember, your layouts are PHP code so you can do some pretty dynamic stuff with that. For example, somet…
  • Thanks... I appreciate it. I may bug you about it in a bit.
  • When you create your page in the admin, you select which layout you want to use. The layout determines what the editable fields are. The layout variable "body" is used by default to contain whatever your layout calls for. You can add other layout va…
  • Yes... I missed the ending ")"
  • I actually have that on the list to be able to set your date formatting.
  • You can use the $this->uri->init_get_params() which will give you back anything in the query string. CI 2 supports query strings as well although I haven't looked too much into it. I noticed in earlier versions of CI at least that there needed…
  • I think I understand the issue. There is a ckeditor class that you can create in your main CSS (it is originally defined in the common.css file), that you can use to customize the preview of CKEditor.
  • Good point. I've just pushed some updates to update the element before submit as well as fix some issues with CK editor and inline editing.
  • If it is specific to say a model, then sometimes I'll add the validation function on the model and instead of the function name I'll use array($this, 'my_func'). However, you can use the create_funciton() php function to create a lamda function. htt…
  • You'll need to use the Dwoo templating syntax and problem will want to use the fuel_model() function to get the data (e.g. {fuel_model('my_model', array('where' = 'published = "yes"')} ). The easiest way to do this would probably create the logic in…
  • Could you just use the native is_int() function instead? Also, you can actually use the CI Form_validation methods if you load the library and then for the function pass the object and method as an array like so: $this->validator->add_rule('my…
  • That is correct, you must include the id value (or whatever the key_field is) so that those actions will work.
  • on_after_save() is passed an array of saved $values which will include the entry id field.
  • You can login to FUEL, click on the Pages menu item on the left and create a page with the location value of "home" which is the default location name for the homepage. Alternatively, you can create a static view file named 'home' in your views dire…
  • That's a bug... I just pushed a fix for it on GitHub: https://github.com/daylightstudio/FUEL-CMS/commit/0118a3ae5e1422a1ab043a8b69fc75a08323ec5a
  • form_fields() has a $values parameter that gets passed to it. May want to try something like this: function form_fields($values = array()) { $fields = parent::form_fields($values); $CI =& get_instance(); $CI->load->model('m…
  • Yep... you would need to make sure it's loaded first: $CI->load->model('meta_model');
  • I would probably create another model for the entries_meta. This will allow you to leverage the entries_meta_model form_fields(), save, and delete methods within your entries_model. I would probably do what you are already thinking using the on_afte…
  • Great! Glad to hear you got it working.
    in AJAX Request Comment by admin March 2011
  • Check out this thread which may help http://www.getfuelcms.com/forums/discussion/comment/831/#Comment_831