NIHVIVO-1234 Restored version of home page controller and templates that uses a pre-generated body string, like other pages, in order to support themes that use page.ftl instead of a page-home.ftl.
This commit is contained in:
parent
33981afe1d
commit
3dd0b5163f
3 changed files with 10 additions and 6 deletions
5
themes/vivo-basic/templates/home.ftl
Normal file
5
themes/vivo-basic/templates/home.ftl
Normal file
|
@ -0,0 +1,5 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for home page body contents -->
|
||||
|
||||
<p>This is the home page of the VIVO vivo-basic theme.</p>
|
|
@ -1,5 +1,7 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Page template for home page -->
|
||||
|
||||
<#include "doctype.html">
|
||||
|
||||
<#include "head.ftl">
|
||||
|
@ -23,11 +25,8 @@
|
|||
|
||||
<div id="contentwrap">
|
||||
<div id="content">
|
||||
<#-- UI team: the home page controller currently does not produce a ${body} string,
|
||||
anticipating that you would put all the markup directly in page-home.ftl. If you want
|
||||
it to work the way other pages do, with a separate template to produce the body,
|
||||
<#-- ${body!} -->
|
||||
<p>This is the home page of the VIVO vivo-basic theme.</p>
|
||||
<h2>Welcome to VIVO!</h2>
|
||||
${body}
|
||||
</div> <!-- content -->
|
||||
</div> <!-- contentwrap -->
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ ${headScripts.tags}
|
|||
</nav>
|
||||
<div id="wrapper-content">
|
||||
|
||||
${body!}
|
||||
${body}
|
||||
|
||||
</div>
|
||||
<footer>
|
||||
|
|
Loading…
Add table
Reference in a new issue