There is a "get_others" method that is inherited by your module's model. You can set it to return an empty array and that dropdown will not appear:
public function get_others($display_field, $id = NULL, $val_field = NULL) { return array(); }
A few questions:
1. What version of FUEL are you running?
2. Is act_id a value supplied in the $_POST when saving (it's a field in your table)? If not, have you tried using the on_before_post hook instead and injecting that value in the $_POST (e.g…
If you are pulling in the header and footer in your view, then you don't need a layout and you add exactly what you have at the top of your view file to not have a layout. If you don't want the main layout to be their by default, you can change it i…
You can always try adding an on_before_validate hook to unset those values if empty. That field is setup in the fuel/modules/fuel/library/Fuel_custom_fields.php file.
If you are using an "opt-in" view file to create a page, it will use the fuel/modules/fuel/controllers/fuel_router.php controller. If you check out that controller, you'll see that it first checks the CMS for a page (if fuel_mode is set to "auto"), …
Try adding a file to your main assets/js/ folder named MyController.js with the following code:
MyController = jqx.createController(fuel.controller.BaseFuelController, { init: function(initObj){ this._super(initObj); }, items : function(){ …
The initial 1.2 release had a problem with passwords if you downloaded it shortly after the release announcement which requires a redownload:
http://forum.getfuelcms.com/discussion/1869/password-being-stored-plain-text-in-database-causes-failed-logi…
To do that, you will need to add your own javascript. In particular, you will need to create a new jQX controller for your module:
http://docs.getfuelcms.com/general/javascript#jqx
That documentation shows a method of "list_items" which is where yo…
A few questions:
1. What are you using to fill in the "options" parameter for your form field?
2. Do you see any javascript errors in the console?
3. What field type are you using?
I'm not sure what may be going on but I know where I can point you to help debug. The BaseFuelController.js file has a submitForm method in it which is what is making the AJAX request. Note that that method sends the form data from $("#form") which …
What is the command you are running?
I think next steps may be to get a little dirty and debug directly in the DB.php CI file. You'll see that around line 35 it includes the database config file and how it determines the path to that file.
Yes. If you are passing in a parameter to the page, you can see how best to do that at the bottom of this page:
http://docs.getfuelcms.com/general/pages-variables
It's not good practice. That was a regression bug from trying to fix a lockout issue when changing permissions and the fix didn't get properly merged in. It has been fixed for 1.2 and retagged.
Right under your table_actions parameter you can add what the preview_path of the page would be (if there is one).
... 'table_actions'=>array('VIEW', 'DELETE'), 'preview_path'=> 'mypage/{slug}', ...
You can use "{}" for place holders of modu…
How are you determining your environments? Are you using the fuel/application/config/environments.php file? If so, the CLI doesn't necessarily have the same $_SERVER['SERVER_NAME'] variable and this can be better configured in the bootstrap index.ph…
There are a lot of factors that go into making a decision like that, in particular, the developer's experience using CodeIgniter and writing PHP code.
Out of the box, FUEL CMS provides you the functionality to create pages as well as your own modul…
Sorry for the confusion. The documentation link I sent was for the validator object which is what is returned when calling get_validation() on the model. The add_validation and get_validation methods are on MY_Model:
http://docs.getfuelcms.com/libra…
To enable that type of inline editing, we would need to drastically overhaul inline editing in general so it's currently not supported but something we are looking at for down the road.
I would use a method similar to what was mentioned above using the "$this->add_validation". Or you can use the "get_validation" method which will return the validator object used for the model by reference and you can add rules directly to that:
…