-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
UI_plugins
Michal Čihař edited this page Apr 18, 2016
·
3 revisions
Why UI plugins? Users want various additional actions like WYSIWIG editor, graphical table editor,...
- $cfg['PluginPath'] - where plugins are installed, empty disables them
- define which plugins are enabled?
Plugins need to modify somehow phpMyAdmins user interface, so they have to be able to add button or link or some other output. How to achieve this?
- Define types of plugins, types should define when plugins should be loaded (name should be derived from page name), eg.:
- editor
- tbl
- tbl_structure
- db_sql
- navigation
- Define places where hook can be added - places where plugin can be called, eg.:
- Edit
- Edit_VARCHAR
- Table_Links
- Footer
- Make empty arrays for each hook place which is appropriate for current page (or create objects which will hold those lists)
- Load all plugins appropriate for current page, plugins can add hooks to above arrays/objects
- When execution will hit hook place, all hooks from array/object will be called, they can place link or whatever in this place
Popular destinations:
- Team meetings
- GSoC home
- Developer guidelines
- How to install on Debian and Ubuntu
- Issue and pull-request management
User resources: