A MODx Revolution Plugin that allows to edit chunks and snippets selecting their tags in the content field of resource, chunk, template, snippet or plugin forms. Also you can get the value of some tags that start with "~", "%", "++" and "#".
Open any resource, chunk or template form where you use chunk or snippet tags (for example [[$myChunk]]
or [[mySnippet]]
). Select it and press Ctrl+Enter. If the element exists, the quick edit dialog will be opened.
If not you can create it right here.
To go to the element's page press Ctrl+Shift+Enter.
tagElementPlugin can get the value of next tags:
The last ones will be parsed if pdoParser is used (read about the fastField tags for more information). It gives the great possibilities.
To form a snippet or a chunk tag with parameters write the element name, select it and press Ctrl+Insert. The "Select element options" dialog with element properties will be opened. Change the required properties and press Save. You'll get the prepared tag. You can specify any custom parameter and any property set. These parameters will be also shown in the options dialog.
Create a new template. Define it structure:
<!DOCTYPE html>
<html lang="ru">
<head>
[[$head]]
</head>
<body>
[[$header]]
[[$main_menu]]
[[$gallery]]
[[$content]]
[[$footer]]
</body>
</html>
And right on this page create these chunks selecting them one by one.
Use next system settings to do it:
They look like this
{key: Ext.EventObject.ENTER, ctrl: true, shift: false, alt: false}
You can specify a digital key code or use the ExtJs constants.
Supported tags:
{include 'file:relative/path/to/file'}
{'@FILE relative/path/to/file' | chunk}
{$_modx->runSnippet('@FILE relative/path/to/file', [])}
Select content in quotes (file:relative/path/to/file
or @FILE relative/path/to/file
) and press Ctrl+Enter or Ctrl+Shift+Enter. Or select only path to the file and press the combination
of Ctrl+Shift+F and Ctrl+Enter.
tagElementPlugin does not support rich text editors. It works without any element editor and with Ace.
Documentation (russian).