RapidTransit wrote:Open your applicationContext-admin.xml located in the admin module
Copy and paste this:
Code: Select all
<bean id="blAdminWebCustomTemplateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver">
<property name="prefix" value="/WEB-INF/admin/templates/" />
<property name="suffix" value=".html" />
<property name="templateMode" value="HTML5" />
<property name="characterEncoding" value="UTF-8" />
<property name="cacheable" value="${cache.page.templates}"/>
<property name="cacheTTLMs" value="${cache.page.templates.ttl}" />
<property name="order" value="100"/>
</bean>
Go to the package: broadleaf-open-admin-platform
Copy the templates folder under open_admin_style
Create a folder called admin under your WEB-INF paste the templates folder, and edit.
Add JS files:
viewtopic.php?f=13&t=2428 this can be adapted to load css files just replace "Js" in all the names with "Css"

The project is not loading my .html files inside ~/WEB-INF/admin/templates/
I changed applicationContext-admin.xml, copied templates from broadleaf-open-admin-platform and edited.
Then, i ran it from the provided build.xml (jetty-demo-jrebel) but got the html loaded from the library (broadleaf-open-admin-platform).
And, I don't know what you mean by this :
RapidTransit wrote:Add JS files:
viewtopic.php?f=13&t=2428 this can be adapted to load css files just replace "Js" in all the names with "Css"
