Theme Editor is a GPL Cart module that allows users with appropriate permissions to edit theme template, CSS and JS files right from UI.
Features:
- Can edit templates, CSS and JS files
- Validates PHP templates before saving (shell_exec() must be allowed)
- Automatically makes a backup zip
- Access control
- Supports Code Mirror
Installation
- Download and extract to
system/modules
manually or using composercomposer require gplcart/editor
. IMPORTANT: If you downloaded the module manually, be sure that the name of extracted module folder doesn't contain a branch/version suffix, e.g-master
. Rename if needed. - Go to
admin/module/list
end enable the module - Go to
admin/user/role
and grant module permissions to the selected role. Be careful aboutTheme editor: edit file
(key editor_edit) - it allows users to save edited files
Usage:
- Start from
admin/tool/editor