ABOUT THE PROJECT
For this project our content updaters needed the ability to embed and dynamically display offices into CKEditor rich text fields. However, since this information is constantly updated through Active Directory they are commonly replace, deleted, or updated entirely. In order to keep offices completely dynamic, I created a Office Embed plugin to solve this problem.
This plugin allows the content updater to query for offices through a simple modal instead of directly hardcoding the node through entity embed. For example, if we want to show an office that is:
- Located in Bergen
- Division is Jury Management
The user is able to select filter properties, display templates, multiple or single, and line divider display options. After inserting, the plugin will generate a unique tag using data-attributes to save the selected query, templates, and property values. This is useful if the power user would like to edit an existing embed so that the information persists.
Our custom filter will be called anytime content is passed through the Drupal check_markup and will look for this specific tag type. If the tag is found, it will look up the office and display it on the page however the data-attributes specifies.
FEATURES
- Custom preprocess filter for office tag types
- Designed CKEditor plugin for easily inserting, editing, and removing office embeds.
- Display single specific properties anywhere in a rich text field
- Predefined templates for displaying office information
- Show multiple offices with options of line dividers
- Control query attributes for division and location of offices
- Can easily modify and edit existing embed offices
- Office display preview ability
MADE FOR
Web Team