Hi Team,
In CMS Home page, need to show some notification to end users below Quick Links, UI was customized as below with required changes as per documentation. But it seems not working and not throws error.
SystemDetailsBanner.java
public class SystemDetailsBanner extends RenderPlugin {
private static final Logger logger = LoggerFactory.getLogger(SystemDetailsBanner.class);
private WebMarkupContainer systemView = new WebMarkupContainer("SystemDetailList");
public SystemDetailsBanner(final IPluginContext context, final IPluginConfig config) {
super(context, config);
try {
final String version = System.getProperty("dashboard.version");
systemView.add(new Label("version", "Version: " + version));
add(systemView);
} catch (Exception e) {
logger.error("System Details missing: {}", e.getMessage());
}
} }
SystemDetailsBanner.html
<html xmlns:wicket="http://wicket.apache.org/">
<wicket:panel>
<div wicket:id="SystemDetailList" class="hippo-cms-custom-header">
<span class="sys-version" wicket:id="version"/>
</div>
</wicket:panel>
</html>
Console change:
/hippo:configuration/hippo:frontend/cms/cms-dashshortcuts/systemDetailsBanner
/systemDetailsBanner:
jcr:primaryType: frontend:plugin
browser.id: service.browse
plugin.class: brxp.plugins.dashboardBanner.SystemDetailsBanner
sortingWeight: 1
wicket.id: shortcutBanner
Thanks,
Gnanamoorthi