One of the common requirements in the IBM WCM projects is to have an inline content editing for the displayed content item in the website. To address this requirement, you should use the authoring tools component.
The authoring tools component can be used to show links to the following actions:
1. Read content.
2. Create content.
3. Edit content.
4. Delete content.
5. Approve content.
6. Reject content.
In the authoring tools component, you can use the following three placeholder tags:
1. name which refer to the displayed label. By default it takes the action name.
2. href which refers to the link of the action.
3. namelink which is a combination of both the name and the link of the action.
To use the authoring tools component from the WCM authoring tool:
1. Click new-> Component -> Authoring Tools.
2. Enter the name, title, and description of the authoring component.
3. If you want to support having a link for creating a content, just write the following in the "New action design":
<a href="<Placeholder tag="href"/>">[Create a new content]</a>
4. If you want to support having a link for editing a content, just write the following in the "Edit action design":
<a href="<Placeholder tag="href"/>">[Edit current content]</a>
The same procedure can be applied for all of the other actions, you also have the option to display or hide any action link in the authoring tools component even if the logged-in user has a privilege to do this action.
For example, to hide a specific action link such as the Read action link, just put In the "Read action design" an empty span:
Once you define the authoring component, you can simply include it in your presentation template (or menu component) so the links can be dynamically displayed based on every logged-in user privilege.
To include the authoring tools component in the presentation template, just use the WCM component tag in the presentation template as follows:
<Component name="[Your authoring tools component name]"/>
I attached below a screenshot that shows how the links will be displayed when showing the content item: