Hi,
I was doing some adv module development, these are my question
1. how to modify the admin menu order ?
currently the only way seem like edit /fuel/modules/config/fuel.php, is there anyway i can overwrite it so that the new module i created appear just after Dashboard ?
2. how to disable the markitup for textarea ?
currently i just disable the javascript to prevent this , any other way to do this ?
3. if I would like to extend the create user process by adding additional field etc , shall i just modify the /fuel/user controller ? or i should build my own controller to replace the create user processs ?
thanks in advance
Comments
2. You can pass the class "no_editor" to your field like so:
$fields['my_textarea'] = array('type' => 'textarea', 'class' => 'no_editor'....);
3. You could modify the user controller, but I would recommend replacing it with your own module/module that extends it. The blog actually does something similar for authors in that they are fuel users with extended fields. The fuel_blog_users table extends the fields for fuel_users to add additional fields specific to the blog.
additional question - the save_related function seem like can't use it when you do adv module development, at least from what i see on the blog module , this has been done in other way, is this a bug or it build in that way for some reason?
The save_related() function should work with advanced modules (depending on the model relationships). The blog users model doesn't use that because save_related is meant to save information to a many to many table.
back to $config['nav'] it seem like only working if you try to overwrite existing nav, example if i try to hide some module for site, but if you are try to add new module, it will be just show at the end of the navigation.