Hi,
I am creating a custom health report and linking it with maintenance dashboard in AEM6.
I have created a health check and a maintenance task. Now I need to create a hint in health report and link it with the maintenance task.
Can some one help with some docs for creating the hint in health check.
Attached the SS of hint available for default hc.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You can refer the OOB implementation. Please check here
http://<host>:<port>/crx/de/index.jsp#/libs/granite/operations/components/mbean/body/body.jsp
This has the code to display the hint and from here you can refer its implementation
<% for (String[] hint : hints) { %> <div class="coral-Alert coral-Alert--notice"> <i class="coral-Alert-typeIcon coral-Icon coral-Icon--sizeS coral-Icon--alert"></i> <strong class='coral-Alert-title'><%= i18n.get("HINT") %></strong> <div class='coral-Alert-message'><a href="<%= xssRequestAPI.getValidHref(hint[1]) %>"><%=xssRequestAPI.encodeForHTML(hint[0]) %></a></div> </div> <% } %>
Views
Replies
Total Likes
Hi,
You can refer the OOB implementation. Please check here
http://<host>:<port>/crx/de/index.jsp#/libs/granite/operations/components/mbean/body/body.jsp
This has the code to display the hint and from here you can refer its implementation
<% for (String[] hint : hints) { %> <div class="coral-Alert coral-Alert--notice"> <i class="coral-Alert-typeIcon coral-Icon coral-Icon--sizeS coral-Icon--alert"></i> <strong class='coral-Alert-title'><%= i18n.get("HINT") %></strong> <div class='coral-Alert-message'><a href="<%= xssRequestAPI.getValidHref(hint[1]) %>"><%=xssRequestAPI.encodeForHTML(hint[0]) %></a></div> </div> <% } %>
Views
Replies
Total Likes