ForceTemplate Icon

ForceTemplate

By Kudashev Serge (kudashevs)

ForceTemplate first screenshot

MODx Revolution plugin which force sets given template for all newly created resources in given parents.

Component work with "Quick Create" menu, allow specify an id or full template name in rules and support nesting/multi-level usage. If parent duplicates in rules, the last rule will be applied. You can find duplications with parents_check option. If non-existent template is given in the rule new document will get parent template and log notification will be generated. If nesting level is not specified in the rule, nesting level will be 1, it means the current parent.

After installation use System settings forcetemplate namespace to set preferable settings values.

  • rules - rule of usage in format "parent_id:template:level" delimited by pipe (|) or double pipe (||). Example: 3:1|4:my template:5.
  • quick_create - allow to turn on/off force set of given template to "Quick Create" menu in document tree. Default true.
  • parents_check - check parents ids in rule for duplication with log error if yes. Default false.

Feel free to suggest ideas/improvements/bugs on GitHub:

https://github.com/kudashevs/ForceTemplate/issues

Kudashev Serge


New in ForceTemplate 1.0.3

1.0.3-pl==============

  • Add "Quick Create" menu support
  • Add component usage example
  • Some refactoring and improvements
1.0.2-pl==============
  • Add multi-level functionality
  • Some refactoring and improvements
1.0.1-pl==============
  • Add choose template by name
  • Remove template_check option
  • Some improvements
1.0.0-pl==============
  • Initial release

More

Information

Released
September 18, 2018
Supported Versions
2.3 – Current
Downloads
120
License
GPLv2

More from Kudashev Serge

L
LastModified

MODx Revolution plugin which handle request If-Modified-Since and…

View
NotFoundParamAlert

NotFoundParamAlert is MODx Revolution Extra which generate alert…

View