Hi Community
I have a requirement where i want to show page path in the title for participant step workitem at http://localhost:4502//mnt/overlay/cq/inbox/content/inbox.html
As shown in below image i want to update this title dynamically
Views
Replies
Total Likes
Hello @adivj95 -
You may do so (as drafted below), but it might have certain implications which you have to additionally handle/consider :
If you are looking for a sample script/approach to handle this use-case :
// Wait for the DOM to be ready
document.addEventListener("DOMContentLoaded", function() {
// Write the code to get the page, as you have not mentioned which page path you want to update.
var pagePath = <script>;
// Update the document title with the page path
document.title = "Page Path: " + pagePath;
});
<script src="/path/to/your/customTitle.js"></script>
Thanks,
Tanika
for inbox page it will work but when i click on notification icon i will see the title without page path
Hello @adivj95
It might be cleaner if you use Description section to add payload Information. The title will help easily identify type of task, while description will provide path to asset
The API details are available here https://github.com/arunpatidar02/aem63app-repo/blob/master/java/SimpleCreateTaskServlet.java
@aanchal-sikka the code in the given github link can be used for creating custom notification, but i want to update the default workflow participant notification, which we get whenever we user participant step in workflow , is there any utility to update that ?
Views
Likes
Replies
Views
Likes
Replies