ForceTemplate
Creator: Sergey Kudashev (kudashevs)
About ForceTemplate
MODx Revolution plugin which force set of given template for all newly created resources in given parents. Component allows find duplicated parent ids in rules. If non-existent template is given in rules the log message will be generated and new document will get parent template.
Information
Released
September 18, 2018
Supported Database
MySQL
License
GPLv2
Supported Versions
2.3 - Current
Downloads
1,041
Instructions
After installation use System settings forcetemplate namespace to set preferable settings values.
Usage example: Determine the desired parent and the level of nesting, if there is a desire to use it. The default nesting level is 1. In System settings choose forcetemplate namespace and fill the field with rules (rules). For example, we need to set two rules:
- There is a parent with id 3 with 1-st level of nesting and a template with id 1, then you need to specify 3:1.
- There is a parent with id 4 with nesting level 5 and the template "my template" (lazy to look for id), then you need to specify: 4:my template:5.
To combine these rules and use them together, combine them via pipe (|) or double pipe (||).
New in 1.0.3-pl
1.0.3-pl==============
- Add "Quick Create" menu support
- Add component usage example
- Some refactoring and improvements
- Add multi-level functionality
- Some refactoring and improvements
- Add choose template by name
- Remove template_check option
- Some improvements
- Initial release