Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each plugin must have a XML file which contains metadata for the plugin itself and for the installation in the system. Among other things this file is responsible for the folder name in the plugins directory of CONTENIDO. Most important it contains all relevant entries for some special database tables, so the plugin is accessible in the backend (creating menu entries and so on). These tables are: actions, area, files, frame_files and nav_sub.

The XML is divided into three multiple parts - each separated to a XML tag. XML files must be valid against the plugin file schema located at xml/plugin_info.xsd located in the plugin managers plugin directory. 

Universal Unique Identifier (UUID)

...

Tag nameDescriptionRequired?Example
plugin_nameFull plugin name.yes
Code Block
languagehtml/xml
<general active="1">
        <plugin_name>Linkchecker</plugin_name>
        <plugin_foldername>linkchecker</plugin_foldername>
        <uuid>428CB6BC-2DE3-284D-34C9-C30C010F6B20</uuid>
        <description>Checks intern and extern links to valid</description>
        <author>Frederic Schneider (4fb)</author>
        <copyright>four for business AG</copyright>
        <mail>frederic.schneider@4fb.de</mail>
        <website>http://www.4fb.de</website>
        <version>2.0.1</version>
        <min_contenido_version>4.9.0-beta1</min_contenido_version>
        <max_contenido_version></max_contenido_version>
</general>
plugin_foldernameName of the plugin folder.yes
uuidThe universal Unique ID.yes
descriptionDescription of the plugins functions.no
authorAuthoryes
copyrightCopyright noticeyes
mailMail address for supportno
websiteWebsite address for supportno
versionVersion of the pluginyes
min_contenido_versionFirst compatible version of CONTENIDOyes
max_contenido_versionLast compatible version of CONTENIDOno

...

Tag nameDescriptionAvailable attributesExample
areasManaging areas
NameDescription
parentName of the parent area or 0
menulessArea has left menu frame (0) or not (1)
Code Block
languagehtml/xml
<areas>
	<area parent="linkchecker" menuless="1">lc_whitelist</area>
</areas>
actionsManaging actions
NameDescription
areaName of the area
Code Block
languagehtml/xml
<actions>
	<action area="linkchecker">linkchecker</action>
</actions>
framesManaging frames
NameDescription
areaName of the area
filetypeType of the file (mostly "main")
namerelative path to frame include file
frameIdNumber of the frame (from 1 to 4)
Code Block
languagehtml/xml
<frames>
	<frame area="linkchecker" filetype="main" name="linkchecker/includes/include.linkchecker.php" frameId="4" />
</frames>
nav_subManaging sub navigations

area, level, navm

NameDescription
areaName of the area
levelNavigation level (0 or 1)
navmMain navigation ID
Code Block
languagehtml/xml
<nav_mainsub>
	<nav area="linkchecker" level="0" navm="1">linkchecker/xml/lang_de_DE.xml;navigation/content/linkchecker/main</nav>
</nav_main>sub>
nav_mainManaging main navigationsnone
Code Block
languagehtml/xml
<nav_main><nav>locationname</nav><main>
	<nav>locationname</nav>
</nav_main>

 

Tag content_types - registration of own content types

 This tag contains information to register own content types.

...

titleCurrently under construction

...

 

Tag nameDescriptionRequired?Example
typeContent type nameyes
Code Block
languagehtml/xml
<content_types>
	<type>CMS_NAME</type>
</content_types>

Tag plugin_dependencies - dependencies to other plugins

This tag is reserved for further implementations of plugin dependencies. The structure of tags is not final and may change.

plugin-install.sql

This file contains additional statements executed on the installation of the plugin. 

...