About ForceTemplate
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:
Information
New in ForceTemplate 1.0.3
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