1 Description
Settings are provided automatically and must not be changed by implementation. The plugin will also place tagicons in the content if Contenttags are used. Also delete icons are provided which make it possible to remove a contenttag from a page.
If a tagicon is clicked Gentics Content.Nodes Tagfill dialog is opened in a lightbox allowing you to update a Contenttags contents. If a delete icon is clicked the corresponding contenttag will be removed from the page and it’s underlying data model. If contenttags are removed by any other means (eg. selecting and deleting them using the Del key on your keyboard) they will be removed from the contents, but not from the pages data model.
If you use the Tagfill dialog to paste HTML contents from Microsoft Word, another Webpage or even code you created or modified yourself Aloha Editor will not be able to filter and clean those. Your HTML code will be inserted directly into the editable and may lead to undesired results.
2 Configuration
The tag insert buttons within the insert tag can be configured per editable. A whitelist configuration is used to show/hide specific tag insert options. The whitelist uses the tagtype keyword to filter the buttons/menu. This enables the system administrator to further define which tags options can be used for editors.
Example configuration:
// this resembles the default configuration of available // constructs for all editables $ALOHA_SETTINGS_NODE[1]['plugins']['gcn']['config'] = array("tagtypeWhitelist" => array("link", "wikilink", "formspace", "htmllang", "myuncategorizedtagtype") ); // if you want to have a specific set of constructs // you have to configure it using the "editables" key $ALOHA_SETTINGS_NODE[1]['plugins']['gcn']['editables'] = array( // this editable won't have any insertable tags "#customEditableId" => array("tagtypeWhitelist" => array("") ), ".header" => // specify construct keywords to be available // for insertion array("tagtypeWhitelist" => array("link", "seitentag", "download", "upload") ), "#GENTICS_METAEDITABLE_page_name" => array("tagtypeWhitelist" => array("fileurl", "breadcrumb", "lswitch") ) );