Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Content Customization Guide

tlaukkan edited this page Dec 7, 2014 · 5 revisions

This guide describes how to change content in Ilves site.

You can add new pages to Site view as follows. You can add role restrictions as last parameter of Ilves.addRootPage and Ilves.addPage methods. To the new pages you can place Vaadin components. You can also set new default page.

Ilves.addRootPage(0, "custom", DefaultValoView.class);
Ilves.setPageComponent("custom", Slot.CONTENT, WelcomeComponent.class);
Ilves.setPageComponent("custom", Slot.FOOTER, CommentingComponent.class);
Ilves.setDefaultPage("custom");