Create custom text button

edited April 2012 in Modules
Hi,
I want to create a custom text button i.e when i click on that button event should occur could any one tell me how to get it done.

Comments

  • edited 3:48PM
    Is this for a module you are creating in the CMS. If so you can specify a 'js' parameter to include a javascript file:
    http://www.getfuelcms.com/user_guide/modules/simple
  • edited April 2012
    Aprreciated for your reply, I need extra button just like a create, how am i supposed to get that where i have to override the method?
    i am working on advanced module and i need it in my module
  • edited 3:48PM
    If you want the button to appear on the list items screen you can add the "list_actions" property to your simple module like so (example is taken from the navigation module):
    'list_actions' => array('navigation/upload' => lang('btn_upload'))

    If you are wanting an additional button in the create/edit view, you can add it to the module config as well:
    'item_actions' => array('save', 'view', 'publish', 'activate', 'delete', 'duplicate', 'create', 'others' => array('my_url' => 'MY Button')),

    More on the module parameters can be found here:
    http://www.getfuelcms.com/user_guide/modules/simple
Sign In or Register to comment.