Loading...
 
Skip to main content

History: FeatureCreationDev

Preview of version: 7

Getting Started With Feature Development

So, you've built a Module ( ModuleCreationDev ) or two and are ready to build a full Feature?

I won't be delving too deeply into the internals of your feature, but instead focusing more heavily on the current system of integrating that feature into the rest of the TikiWiki framework. Basically, a feature needs to do several things:

  • Use AdminFeatures to turn itself On/Off
  • Initialize itself in php-setup
  • Display a menu in the ApplicationMenu
  • Expose itself for administration in either the Admin Menu or Section

Don't confuse a feature with a module ( ModuleCreationDev ). A feature is a full fledged application that is a major part of tikiwiki. In fact a feature will usually contain at least one module. Examples would be the Wiki system or the Articles system.


Turning a Feature On/Off

In tikiwiki, all features are enabled or disabled through the use of the Admin Control Panel Features which can be found in the control panel. It is quite simple to add your feature to this list. Just copy a line from an existing feature in the template file ( tiki/tiki-admin-include-features.tpl ) and replace the old feature name with the new. Then do the same thing in the php file ( /tiki/tiki-admin.php ) so that the setting is recorded.

Initialization in php-setup


Adding to the AdminMenu






Please feel free to edit, remove or re-write this page

History

Advanced
Information Version
Philippe Cloutier Error, tpl->php 17
View
george.geller 15
View
Ben Tallman 13
View
Ben Tallman 12
View
Ben Tallman 11
View
Ben Tallman 10
View
Ben Tallman 9
View
Ben Tallman 8
View
Ben Tallman 7
View
Ben Tallman 6
View
Ben Tallman 5
View