There are some things Marmotta allows to customize.
Marmotta comes with thee styles:
- 'blue' (available at 'core/public/style/rblue/', default)
- 'white' (available at 'core/public/style/white/')
- 'red' (available at 'core/public/style/red/')
So you can easily switch from any just adding the following configuration:
Besides the default styles, you could customize the style of the admin interface. For that, you may need you set some concrete configurations:
kiwi.pages.startupsets the custom page to use as welcome page
kiwi.pages.projectassert that Marmotta will use a custom style
kiwi.pages.style_pathindicates the base path were look for the normativle css files (see for example the custom style that LMF uses)
kiwi.pages.project.custom.logois the relative url to the custom logo
kiwi.pages.project.custom.footerallows to write a custom footer
Since version 3.2, the templates Marmotta internally uses are being copied to the home directory on deployment (
admin.ftlis the template used to build the admin user interface
rdfhtml.ftlrenders RDF resources as HTML
404.ftlprovides the error page when a requested resources is not found
That would allow advanced users to customize the user interface by directly hacking the freemarker templates. For instance, to provide a customized HTML view of the RDF resources. But of course it requires to be very careful doing it for not breaking the templating.
If you would need to automatically deploy the templates on startup, you can add an event handler like this to your custom application:
You can also build your own applications based on Marmotta, both adding custom modules and/or having your own webapp launcher.
Build your custom module
There is a Maven archetype for a Marmotta Module:
This will generate the following structure:
Adding it to a custom webapp launcher will give the module its own space in the admin ui.
Build your custom webapp launcher
There is a Maven archetype for a Marmotta Webapp:
After that you will have a new Maven project with a structure like:
Then, moving to the folder that Maven created, you can start it just by running one of the following command:
By default it will start your new webapp at http://localhost:8080
Of course you can customize whatever you need, as soon as you do not break the general setup (servlets and filters).