NIHVIVO-1394 Provide a currentPage variable to the page template.
This commit is contained in:
parent
7149091c75
commit
f9a02c5218
1 changed files with 3 additions and 0 deletions
|
@ -416,6 +416,9 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
|
|||
map.put("flash", flashMessage);
|
||||
}
|
||||
|
||||
// Let the page template know which page it's processing.
|
||||
map.put("currentPage", vreq.getServletPath().replaceFirst("/", ""));
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue