Setting for advanced modules

edited September 2014 in Modules
I notice this page

http://docs.getfuelcms.com/general/configs-settings

it mentioned to put config settings like below will allow users to set the settings

but when i put these in /modules/fuel/config/fuel.php
$config['fuel']['settings']=array();
$config['fuel']['settings']['social']=array('type'=>'text'); // in this case i am trying to create a new social field to allow user specify which social platform they want to use, e.g. facebook, twitter

nothing happen at the backend dashboard. What did i do wrong?

Comments

  • edited 8:26AM
    I would add it to your MY_fuel.php file instead of overwriting the main fuel.php file (you'll see an example commented out at the bottom of that file).

    Then you should see these options under the "Settings" module in the CMS.
  • edited 8:26AM
    yes, it is working now. However, any chance to cusotmize the icon displayed on setting pages. Currently there is a fuel cms icon and "Fuel" word displayed. But i would customize it to change label to "Site".
  • edited 8:26AM
    To have one labeled site, you would need to create an advanced module named "site" and then put your own settings configuration in its config like so (in fuel/modules/site/config/site.php):
    $config['site']['settings']=array(); $config['site']['settings']['social']=array('type'=>'text');
    Its setup so that an advanced module can have it's own settings configuration.
    http://docs.getfuelcms.com/modules/advanced
  • edited 8:26AM
    Actually i do not want to create another advanced module. I am using fuel, just want to change the module name on config page, no sure if there are any such properties, e.g. the label attribute for fields
  • edited 8:26AM
    Unfortunately there is not. It uses the advanced module name to create the label and icon.
Sign In or Register to comment.