Skip to content

muratpurc/CONTENIDO-plugin-mp_dev_tools

Repository files navigation

CONTENIDO CMS plugin "Mp Dev Tools"

Description

Contains some helpful features for the development of CONTENIDO modules and plugins. Provides the module/plugin developer with tools and makes the work on module/plugin development easier.

Requirements

  • CONTENIDO >= 4.10
  • PHP >= 7.1

Features

  • Basic functionality to access request variables ($_GET, $_POST, $_REQUEST, etc.).
  • Basic functionality for modules, both for module inputs and for module outputs.
  • Basic functionality for plugins.
  • Simplified generation of tables in the module configuration (module input).
  • Simplified generation of expandable and collapsible tables in the module configuration (module input), as known from the "Article List Reloaded" and "Appointment List v3" (Terminliste v3) modules.
  • Easy handling of CMS tokens (CMS_VAR and CMS_VALUE) in module inputs and outputs.
  • Easy access to the most common client information and paths.
  • Easy access to the most common backend information and paths.
  • Generic properties for modules and plugins.
  • Form elements for selecting categories, articles, content types, and upload files.
  • Easy access to ids of selected categories, articles, content types, and upload files.
  • Fully compatible with CONTENIDO >= 4.10.*.
  • Fully compatible with PHP >= 7.1, also with PHP up to 8.2.
  • In summary, an easier way to program modules and plugins for CONTENIDO CMS.

Usage

  1. Download release archive (zip)

  2. Install it using the PIM (Plugin Manager) in CONTENIDO backend

  3. Use it in your modules or plugins

Settings

Settings used by the plugin, which can be defined on user, group, client or system level.

Type Name Description Default
plugin_mp_dev_tools select_option_folder_symbol The symbol to represent a folder for the upload select (drop-down). This can be any character, unicode character, or HTML entity, but not HTML markup. "📁" HTML entity for folder

Module example

See also "_examples" folder in GitHub for a sample implementation of a module based on "Mp Dev Tools" features. Install the module in your CONTENIDO project, create an article with a template where the module is configured and see some details in module input and module output.

Plugin example

See the code of the plugin "Mp Dev Tools", it uses its own features.