Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: generate:settings_page #145

Open
JohnFF opened this issue Dec 9, 2018 · 3 comments
Open

Feature Request: generate:settings_page #145

JohnFF opened this issue Dec 9, 2018 · 3 comments

Comments

@JohnFF
Copy link

JohnFF commented Dec 9, 2018

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 :)

@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Dec 10, 2018

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]],

@JohnFF
Copy link
Author

JohnFF commented Dec 11, 2018

is_public true?

@eileenmcnaughton
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants