Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Run the Maven install to deploy your new theme to the Tomcat container. Restart the VIVO Tomcat process. You can then go to the Site Admin page and choose Site Information, to select your theme as the current one.

 Image Added

The structure of pages in VIVO

...

page.ftl is the default base template. The rest of the theme templates listed are components of page.ftl (included either directly or indirectly). Closer inspection of page.ftl reveals a stripped down file that declares minimal markup itself and instead reads as a list of includes for the component templates.

...

There are still page in VIVO which are not constructed entirely in FreeMarker. Breaking down the base template into components allows consistent markup to be used for any page rendered by the application, no matter how the page is constructed.

On the VIVO home page, page-home.ftl is used instead

...

of page.ftl.

...

 It serves much the same purpose, but allows you to create a different layout for your home page than for the other pages in VIVO.

Once the transition is complete in a future VIVO release and all pages are rendered entirely using FreeMarker templates, the restrictions on page.ftl will be lifted and the preference on whether the base template should be broken down into smaller component templates will be left to the theme developer. Until that time, it For consistency, It is critical that the following components be maintained:

...

This component template is primarily intended for the 7 partner institutions on the NIH grant, but it is available for anyone who is interested in using Google Analytics to track visits to a VIVO installation. It is included by footer.ftl. Simply uncomment the <script> element and provide your Google Analytics Tracking Code.

Adjust the markup as necessary in page.ftl, and these component templates to achieve the desired content structure, and modify the stylesheets to meet layout needs and style your site. Remember that changes should be made in the source directory and that you will need to redeploy the project before the changes are reflected in the live website.

...