Examples
In this package we have also provided some customisation examples (available at guides_extension/src) . Below is a brief description for each of them.
-
Context Menu
In this example we have customised thefile_optionscontext menu, to remove theDeleteandEditoptions, and replace theDuplicateoption with aDownloadoption. -
Left Panel
In this example we have customised theleft tab panelto have anothertabtitled “TEST EXTENSION”, and a correspondingtab panelwhich has a label:Test Tab Panel -
Right Panel
In this example we have customised theright tab panelto have anothertabtitled “TEST EXTENSION”, and a correspondingtab panelwhich has a label:New Tab Panel -
Toolbar
In this example we have replaced theInsert Element,Insert Paragraph,Insert Numbered List,Insert Bulleted Listbuttons with a singleMore Insert Optionsbutton containing all of these. -
Manage button on the Metadata panel
In this example, we have customized the Manage button (located in the Metadata panel on the Reports page) so that it is disabled when selected file(s) are in read-only mode. This helps prevent accidental metadata edits on files that are not intended for editing.
[Review App Examples]
-
Annotation Toolbox
In this example we have added another button to the annotation toolbox that opens the current review topic in AEM. -
Review Comment
In this example we have added replaced the user name with user info (consisiting full name and title of the commenter), added a unique comment ID, a mailTo icon, and added input fields for mentioning comment severity and rationale.
We have also added aaccept with modificationbutton on comments on the XMLEditor side that opens a dialogue. -
Comment Reply
In this example we have added replaced the user name with user info (consisiting full name and title of the commenter), and added a mailTo icon in the comment header. -
Inline Review Panel
In this file, we calculate and assign the unique comment ID, mentioned in theReview CommentandComment Replyexamples.-
The
setCommentIdmethod sets the unique comment ID to each comment depending on the comment count. -
The
setUserInfosets the value of userInfo, using the full name and title for each comment. -
The
onNewCommentEventensures thesetUserInfomethod is called for each new comment or reply. -
The
updatedProcessCommentsfunction runs for each new comment Event, and ensures thatsetCommentIdis called if we get a new comment event.
-
-
Topic Reviews Panel: This file extends Inline Review Panel so that added customisations work on the Review App side as well.
-
Accept with Modification Dialog
This is an example of adding new widgets to the app. Here we have created a new dialogue, that has two input text fields:Revised TextandAdjudicator Comment Rationale -
Save Revision
This is asn example of how to update an exisitng dialog. We add a button for publish in this. We allow modifying the content of the dialog. Refer to its json here:save_revision
Here’s the review panel before and after customisation: