civix icon indicating copy to clipboard operation
civix copied to clipboard

Feature Request: generate:settings_page

Open JohnFF opened this issue 6 years ago • 3 comments

Hi all,

@eileenmcnaughton recently made a "settings page" feature for extensions. I think it'd be dandy if this was supported by everyone's favourite extension generating tool :)

JohnFF avatar Dec 09 '18 15:12 JohnFF

just to keep this together - the action would need to generate an xml like

xml/Menu/settings.xml

Where the content is

  <item>
    <path>civicrm/settings/{$myextension}</path>
    <page_callback>CRM_Admin_Form_Generic</page_callback>
    <title>Omnipay Developer Settings</title>
    <access_arguments>administer payment processors</access_arguments>
  </item>

Settings in the extension would all need

    'settings_pages' => ['{$myextension}' => ['weight' => 20]],

eileenmcnaughton avatar Dec 10 '18 00:12 eileenmcnaughton

is_public true?

JohnFF avatar Dec 11 '18 11:12 JohnFF

@JohnFF removed..... copy & paste huh?

eileenmcnaughton avatar Dec 11 '18 19:12 eileenmcnaughton