Adding title to menu pages NIHVIVO-1579
This commit is contained in:
parent
f37838eb2a
commit
f1ec7240bd
1 changed files with 8 additions and 4 deletions
|
@ -51,6 +51,9 @@ public class PageController extends FreemarkerHttpServlet{
|
|||
pageUri = getPageUri( vreq , url );
|
||||
page = getMapForPage( vreq, pageUri );
|
||||
mapForTemplate.put( "page", page);
|
||||
if( page.containsKey("title") ){
|
||||
mapForTemplate.put("title", page.get("title"));
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
return doNotFound(vreq);
|
||||
}
|
||||
|
@ -62,7 +65,8 @@ public class PageController extends FreemarkerHttpServlet{
|
|||
return doError(vreq);
|
||||
}
|
||||
|
||||
return new TemplateResponseValues(getTemplate( mapForTemplate ), mapForTemplate);
|
||||
ResponseValues rv = new TemplateResponseValues(getTemplate( mapForTemplate ), mapForTemplate);
|
||||
return rv;
|
||||
} catch (Throwable e) {
|
||||
log.error(e);
|
||||
return new ExceptionResponseValues(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue