Versions Compared

Key

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

...

Each plugin must have an UUID to identify it globally. These IDs base on the values for the plugin_name and copyright fields in this file. UUIDs only can be generated on the CONTENIDO website

Tag general - meta information (required)

This tag contains meta information about the plugin which also are displayed in frontend. The tag has the attribute "active" which should have the value "1".

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>
</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

Tag requirements - requirements for new plugins

Tag nameDescriptionAvailable attributesExample
contenidoVersions of CONTENIDO
NameDescription
minversion

First compatible version

of CONTENIDO. Required

maxversion

Last compatible version of

CONTENIDO

Code Block
languagehtml/xml
    <requirements php="5.2.3">
        <contenido minversion="4.9.0" />
        <extension name="mysql" />
        <class name="cRegister" />
        <function name="i18n" />
    </requirements>
extensionPHP extensions
NameDescription
nameName of the extension
classPHP classes
NameDescription
nameName of the class
functionPHP functions
NameDescription
nameName of the function

Tag dependencies - dependencies to other plugins

...

This tag contains information for plugin dependencies. The plugin manager checks if uuid is available in the database and if the required plugin is active.

Tag nameDescriptionAvailable attributesExample
dependDependencies to other plugins
NameDescription
uuidThe universal Unique ID. Required.
minversion

First compatible version

of plugin.
maxversion

Last compatible version

of plugin.
Code Block
languagehtml/xml
<dependencies>
	        <depend uuid="82b117e94bb2cbcbce4e56b79a7d0c23" minversion="1.0.0" maxversion="1.0.1">Smarty Wrapper</depend>
</dependencies>

Tag contenido - database specific information

...

The order of the XML tags must be the same as listed below.

Tag nameDescriptionAvailable attributesExample
areasManaging areas
NameDescription
parentName of the parent area or 0
relevantSince CONTENIDO 4.9.10: Show this area on menu (1) or not (0). This attribute is optional. Before version 4.9.10, relevant is at all time active.
menulessArea has left menu frame (0) or not (1)
Code Block
languagehtml/xml
<areas>
	<area parent="linkchecker" relevant="1" 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_mainManaging main navigations
NameDescription
nameName of the menu (since CONTENIDO 4.9.10, Menu occurs only if nav_sub exists)
Code Block
languagehtml/xml
<nav_main>
	
<nav>locationname<
<nav name="menuname">pluginname/xml/lang_de_DE.xml;navigation/menuname/main</nav>
</nav_main>
nav_subManaging sub navigations
NameDescription
areaName of the area
levelNavigation level (0 or 1)
navmMain navigation ID or Main menuname (if nav_main is used, name of this menue must set here)
Code Block
languagehtml/xml
<nav_sub>
	<nav area="linkchecker" level="0" navm="1">linkchecker/xml/lang_de_DE.xml;navigation/content/linkchecker/main</nav>
</nav_sub>

Tag content_types - registration of own content types

This tag contains information to register own content types.

 

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

plugin_install.sql, plugin_uninstall.sql and update sql files

...

Furthermore, it is only possible to execute the following database operations.

Installation typeAvailable operations
Installation
  • CREATE TABLE IF NOT EXISTS
  • INSERT INTO

  • UPDATE
  • ALTER TABLE
Uninstall
  • DELETE FROM
  • DROP TABLE
Update
  • UPDATE
  • ALTER TABLE
  • DELETE FROM
  • DROP TABLE

 

The prefix placeholder contains the common database table prefix (per default: "con_") following by the chars "pi" for plugin.

...