PHP Classes

Melis Templating Plugin Creator: Create page template plugins for the Melis CMS

Recommend this page to a friend!
  Info   View files Documentation   View files View files (51)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 17 All time: 11,255 This week: 455Up
Version License PHP version Categories
melis-templating-plu 1.0The PHP License5PHP 5, Content management, Code Gener...
Description 

Author

This package can create page template plugins for the Melis CMS.

It implements a plugin for the Melis content management system that allows the users to define several details of a new plugin on a page of a site managed by Melis.

Currently, this plugin allows the users to define, for instance.

- The destination directory of the generated files

- Properties of the plugin like field name, display type, default options, default value, and required attribute

- Translation of the texts used by the plugin

Innovation Award
PHP Programming Innovation award nominee
December 2022
Number 8
Content management systems (CMS) are helpful to help creating new sites very quickly.

Many CMS can be extended with plugins that make them more useful.

This package provides a plugin that helps developers to create new plugins for the Melis CMS system that can generate pages based on template scripts.

This way, developers can create faster, simple plugins that can output pages for specific purposes.

Manuel Lemos
Picture of Fabrice Fesch
Name: Fabrice Fesch <contact>
Classes: 10 packages by
Country: France France
Age: ???
All time rank: 380597 in France France
Week rank: 89 Up3 in France France Up
Innovation award
Innovation award
Nominee: 7x

Documentation

Melis Templating Plugin Creator

Generates a ready-to-use templating plugin, complete with source code and necessary configuration. This will aid the developers, especially the new developers of the platform, to swiftly create a plugin without delving deeply into plugin's technicalities.

Getting started

These instructions will get you a copy of the project up and running on your machine.

Prerequisites

The following modules need to be installed to run the Melis Templating Plugin Creator module:

  • Melis Core
  • Melis Tool Creator

Installing

Run the composer command:

composer require melisplatform/melis-templating-plugin-creator

Go to /melis-templating-plugin-creator/public/ and change the file owner of the 'temp-thumbnail' directory to 'www-data'. This is where the plugin thumbnails are temporarily saved.

chown www-data temp-thumbnail

Database

No database is needed for this tool

Tools and elements provided

  • Templating Plugin Creator Tool
  • Templating Plugin Creator Service

Templating Plugin Creator Tool

- user must specify the destination of the generated plugin: new module or existing site module - the properties of the plugin need to be set(field name, display type, default options, default value and required attribute) as well as their translations which will then be used in the plugin modal form - the 'Template' property is already set by default - after generation, the source code can be found inside the destination module ready to be updated based on the project's requirements - the generated plugin can then be found inside the Plugin's menu in the Melis CMS Page Edition System

Templating Plugin Creator Service

File: 
      - /melis-templating-plugin-creator/src/Service/MelisTemplatingPluginCreatorService.php
    

  • MelisTemplatingPluginCreatorService - This service's main function is to generate a templating plugin using the parameters saved in the current session.

     $templatingPluginService = $this->getServiceManager()->get('MelisTemplatingPluginCreatorService');
     $result = $templatingPluginService->generateTemplatingPlugin();
    

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Melis Technology premium versions end user license agreement (EULA) - see the LICENSE.md file for details


  Files folder image Files  
File Role Description
Files folder imageconfig (4 files)
Files folder imageetc (1 directory)
Files folder imagelanguage (2 files)
Files folder imagepublic (3 directories)
Files folder imagesrc (1 file, 3 directories)
Files folder imagetemplate (6 files, 1 directory)
Files folder imageview (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  config  
File Role Description
  Accessible without login Plain text file app.interface.php Aux. Auxiliary script
  Accessible without login Plain text file app.tools.php Aux. Auxiliary script
  Accessible without login Plain text file app.toolstree.php Aux. Auxiliary script
  Plain text file module.config.php Class Class source

  Files folder image Files  /  etc  
File Role Description
Files folder imageMarketPlace (1 file, 1 directory)

  Files folder image Files  /  etc  /  MarketPlace  
File Role Description
Files folder imageimages (6 files)
  Accessible without login Plain text file melis-templating-plugin-creator.xml Data Auxiliary data

  Files folder image Files  /  etc  /  MarketPlace  /  images  
File Role Description
  Accessible without login Image file melis-templating-plugin-creator-1.JPG Data Auxiliary data
  Accessible without login Image file melis-templating-plugin-creator-2.JPG Data Auxiliary data
  Accessible without login Image file melis-templating-plugin-creator-3.JPG Data Auxiliary data
  Accessible without login Image file melis-templating-plugin-creator-4.JPG Data Auxiliary data
  Accessible without login Image file melis-templating-plugin-creator-5.JPG Data Auxiliary data
  Accessible without login Image file melis-templating-plugin-creator-6.JPG Data Auxiliary data

  Files folder image Files  /  language  
File Role Description
  Accessible without login Plain text file en_EN.interface.php Aux. Auxiliary script
  Accessible without login Plain text file fr_FR.interface.php Aux. Auxiliary script

  Files folder image Files  /  public  
File Role Description
Files folder imagebuild (2 directories)
Files folder imagecss (2 files)
Files folder imagejs (2 files)

  Files folder image Files  /  public  /  build  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)

  Files folder image Files  /  public  /  build  /  css  
File Role Description
  Accessible without login Plain text file bundle.css Data Auxiliary data

  Files folder image Files  /  public  /  build  /  js  
File Role Description
  Accessible without login Plain text file bundle.js Data Auxiliary data

  Files folder image Files  /  public  /  css  
File Role Description
  Accessible without login Plain text file bootstrap-tagsinput.css Data Auxiliary data
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  public  /  js  
File Role Description
  Accessible without login Plain text file bootstrap-tagsinput.js Data Auxiliary data
  Accessible without login Plain text file templating-plugin-creator.js Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageController (1 file)
Files folder imageForm (1 directory)
Files folder imageService (1 file)
  Plain text file Module.php Class Class source

  Files folder image Files  /  src  /  Controller  
File Role Description
  Plain text file TemplatingPluginCreatorController.php Class Class source

  Files folder image Files  /  src  /  Form  
File Role Description
Files folder imageFactory (2 files)

  Files folder image Files  /  src  /  Form  /  Factory  
File Role Description
  Plain text file MelisTemplatingPlu...leSelectFactory.php Class Class source
  Plain text file MelisTemplatingPlu...teSelectFactory.php Class Class source

  Files folder image Files  /  src  /  Service  
File Role Description
  Plain text file MelisTemplatingPluginCreatorService.php Class Class source

  Files folder image Files  /  template  
File Role Description
Files folder imageCode (6 files)
  Accessible without login Plain text file blank_plugin.js Data Auxiliary data
  Accessible without login Plain text file language-tpl.php Aux. Auxiliary script
  Accessible without login Plain text file modal-form.phtml Example Example script
  Accessible without login Plain text file plugin-name.phtml Data Auxiliary data
  Accessible without login Plain text file TemplatingPlugin.config.php Aux. Auxiliary script
  Plain text file TemplatingPluginController.php Class Class source

  Files folder image Files  /  template  /  Code  
File Role Description
  Accessible without login Plain text file digit-validator Data Auxiliary data
  Accessible without login Plain text file empty-field-validator Data Auxiliary data
  Accessible without login Plain text file modal-form-scripts Data Auxiliary data
  Accessible without login Plain text file tab-elements Data Auxiliary data
  Accessible without login Plain text file tab-input-filters Data Auxiliary data
  Accessible without login Plain text file tab-properties Data Auxiliary data

  Files folder image Files  /  view  
File Role Description
Files folder imagemelis-templating-plugin-creator (1 directory)

  Files folder image Files  /  view  /  melis-templating-plugin-creator  
File Role Description
Files folder imagetemplating-plugin-creator (6 files, 1 directory)

  Files folder image Files  /  view  /  melis-templating-plugin-creator  /  templating-plugin-creator  
File Role Description
Files folder imagepartial (7 files)
  Accessible without login Plain text file render-form.phtml Example Example script
  Accessible without login Plain text file render-step6-finalization.phtml Example Example script
  Accessible without login Plain text file render-templating-...creator-steps.phtml Example Example script
  Accessible without login Plain text file render-tool-content.phtml Example Example script
  Accessible without login Plain text file render-tool-header.phtml Example Example script
  Accessible without login Plain text file render-tool.phtml Example Example script

  Files folder image Files  /  view  /  melis-templating-plugin-creator  /  templating-plugin-creator  /  partial  
File Role Description
  Accessible without login Plain text file field-form.phtml Example Example script
  Accessible without login Plain text file render-step1.phtml Example Example script
  Accessible without login Plain text file render-step2.phtml Example Example script
  Accessible without login Plain text file render-step3.phtml Example Example script
  Accessible without login Plain text file render-step4.phtml Example Example script
  Accessible without login Plain text file render-step5.phtml Example Example script
  Accessible without login Plain text file render-step6.phtml Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:17
This week:0
All time:11,255
This week:455Up