Hi,
I built my Layout with layout-builder URL.html
It creates metronic_html_v8.2.0-1689961543 zip file with 2 folders and the index file.
I copy that folder and the index.html file to my spring project.
Now, I start my app and there is no errors on navigator console. Not even in STS IDE console.
Just a blank page. I find these pages are not loaded:
layout-partial:partials/theme-mode/_init.html
layout-partial:layout/partials/_page-loader.html
layout-partial:layout/_default.html
layout-partial:partials/_scrolltop.html
layout-partial:partials/modals/_upgrade-plan.html
layout-partial:partials/modals/_view-users.html
layout-partial:partials/modals/users-search/_main.html
layout-partial:partials/modals/_invite-friends.html
Of course all those files exists in their correct folder and are not commented.
Product: Metronic 8.1.8 and 8.2.0 (spring boot ptoject)
Java 17, IDE STS4, spring 3.1.1
Need help, please.
Thanks.
Hi,
The paths you mentioned, such as "layout-partial:partials/theme-mode/_init.html" and others, are sample reference paths used in HTML comments. These references are intended for the Metronic HTML version and not for direct use in a Spring Boot project.
To properly include the layout partials in your Spring Boot application, you should use Spring Boot's include function to include the relevant HTML files. For example, you can use "th: replace" attribute to include the layout partials in your HTML templates.
Here's an example of how you can include a layout partial in your HTML template:
<div th:replace="partials/theme-mode/_init.html"></div>
Hi,
It works now.
Thank you very very much.
Update:
Navigator code from index.html show empty values for each layout-partial:
<layout-partial:layout partials="" _page-loader.html="">