Solved
template.getName() not working on publish env
Hi All,
I want to output template name as a css class on body tag of my page. In body.jsp we have done this, which works on author env but does not work on publish env? Is it because template resource is not available in publish env. Is there a simple way to fix it?
<c:set var="pageCssClass" value="${currentPage.name}-page" /> <c:set var="templateCssClass" value="${currentPage.template.name}-template" /> <body class="<c:out value="${pageCssClass} "/><c:out value="${templateCssClass} "/><wcmmode:edit>edit</wcmmode:edit>"