Yes it would be good idea for a simple addon, but until someone (or myself) get around to writing one, here is the solution for the impatient:
- go to /src/main/webapp/WEB-INF/classes and duplicate the standard.properties as your new theme – for example: new.properties
-
Edit the /src/main/webapp/WEB-INF/i18n/messages.properties and the name of your Theme: <pre class="brush: plain; title: ; notranslate" title="">global_theme_new=My New Theme</pre>
- Next edit /src/main/webapp/WEB-INF/tags/util/theme.tagx and add your new theme (before the last <pre class="brush: plain; title: ; notranslate" title=""></span></pre>
. For Example:</li> </ol>
<pre class="brush: plain; title: ; notranslate" title=""><c:out value=" | " />
<spring:url var="url_theme3" value="">
<spring:param name="theme" value="new" />
<c:if test="${not empty param.page}">
<spring:param name="page" value="${param.page}" />
</c:if>
<c:if test="${not empty param.size}">
<spring:param name="size" value="${param.size}" />
</c:if>
</spring:url>
<spring:message code="global_theme_new" var="theme_new" />
<a href="${url_theme3}" title="${theme_new}">${theme_new}</a>
</pre>