tagElementPlugin Icon

tagElementPlugin

An extra to work with MODX tags.

By Sergey Shlokov (sergant210)

Open any resource, chunk or template where you use the chunk/snippet tags (for example and ). 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.

Press Ctrl+Alt+C to open the quick update dialog for chunk with the selected name.

NEW FEATURES

To form a snippet or a chunk tag with parameters write the snippet name, select it and press Ctrl+Insert. The "Select element options" dialog with default properties will be opened. Change the required properties and press Save. You'll get the prepared tag like when you drag'n'drop elements.

System settings to customize the shortcuts.

  • tagelementplugin_quick_editor_keys - a shortcut to open the quick editing window for selected elements.
  • tagelementplugin_element_editor_keys - a shortcut to redirect to the element page.
  • tagelementplugin_element_prop_keys - a shortcut to open the "Select element options" dialog for the selected snippet or chunk.
  • tagelementplugin_quick_chunk_editor_keys - a shortcut to open the quick update chunk dialog with selected name.
  • tagelementplugin_chunk_editor_keys - a shortcut to redirect to the chunk update form.

You can specify a digital key code or use [ExtJs constants](http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.EventManager).

Support of Fenom file element syntax

Supported syntax:

  • {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 and press the combination of Ctrl+Shift+F and Ctrl+Enter.

Important! TagElementPlugin does not support rich text editors.

You can read more detail information on [Github](https://github.com/sergant210/tagElementPlugin).

Sergey Shlokov


New in tagElementPlugin 1.3.1

1.3.1-pl

  • Bugfixes.

1.3.0-pl

  • Added support of Fenom file element syntax.

1.2.4-pl

  • Fixed bug with browser warning about unsaved data.

1.2.3-pl

  • Fixed the name of the id attribute of the textarea field.

1.2.2-pl

  • Fixed bug with the element name field when opened more then one quick dialog.

1.2.1-pl

  • Fixed bug with "save as" command.

1.2.0-pl

  • tagElementPlugin is also available in the snippet and plugin forms.
  • Added keyboard shortcuts to work with chunks. By default, Ctrl+Alt+C and Ctrl+Shift+Alt+C.
  • Added "Save as" button to the quick update dialogs.

1.1.4-pl

  • The "Select element options" dialog (shown by pressing Ctrl+Insert) takes into account specified parameters.

1.1.3-pl

  • Bind Ctrl+S and Ctrl+Shift+S to the buttons "Save" and "Save and close" of the quick edit dialogs.

1.1.2-pl

  • Allow to create the system settings.

1.1.1-pl

  • Added system settings allow users to customize the keyboard shortcuts.

1.1.0-pl

  • Added ability to form a snippet tag with parameters like the drag'n'drop operation. Select a snippet tag and press Ctrl+Insert.

1.0.5-pl

  • Fixed bug of setting element name to field "Name" of the quick create element dialog.
  • Added check the changes to prevent loss of them when the user wants to leave the page. It's switched off by the system setting "Confirm_navigation".

1.0.4-pl

  • Added recursive call.

1.0.3-pl

  • Added ability to get the value of next tags: , , and . The last one will be parsed if pdoParser is used (see http://docs.modx.pro/en/components/pdotools/parser#fastField-tag for more information).
  • Now you can select entire . tagElementPlugin can get correct tag name from this selection.

1.0.2-pl

  • Fixed error with path in the plugin.

1.0.1-pl

  • Added php and fenom syntax highlighting.

1.0.0-pl

  • Initial release.
More

Information

Released
March 31, 2019
Supported Versions
2 – Current
Downloads
10,158
License
GPLv2

More from Sergey Shlokov

AdminTools

Adds some features for MODX administrators and developers.

View
M
modHelpers

Library of helpfull functions for MODX developers.

View
modalConsole

It's a modal console for PHP. It is intended for developers which…

View
siteStatistics

Views and visits statistics.

View