Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
can't find info about 'Add new settings menus to control my amazing new extensions'
In the More Information section of the getting started for dev things, my appetite got wet enough. But I still can't find infos about Add new settings menus to control your amazing new extensions. Could someone help me ?
0
This discussion has been closed.
Comments
Also, it's always instructive to look at the source code of an add-on that does something similar.
In fact it's a set of instructions (thanks to the framework, eases our lives much, we must:
// test for settings.php page and permissions if ($Context->SelfUrl == "settings.php" && $Context->Session->User->Permission('PERMISSION_MANAGE_EXTENSIONS')) { // add the list and list item $ExtensionOptions = $Context->GetDefinition("ExtensionOptions"); $Panel->AddList($ExtensionOptions, 20); $Panel->AddListItem($ExtensionOptions, $Context->GetDefinition("SettingItemOfMyExtension"), GetUrl($Context->Configuration, 'settings.php', '', '', '', '', 'PostBackAction=MyExtensionString')); }
I learned this from Attachments, and must continue for me to understand the PostBack trick.
EDIT: I remember now reading a post about the string to use for the title of the list that hosts the list items. Some different extensions use different strings and it becomes a mess. Can somebody find this ?