Adding N3 menu editing to the site admin page.
This commit is contained in:
parent
e5da2a557a
commit
22575dc3e2
4 changed files with 11 additions and 3 deletions
|
@ -326,7 +326,7 @@
|
|||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>MenuN3EditController</servlet-name>
|
||||
<url-pattern>/MenuN3EditController</url-pattern>
|
||||
<url-pattern>/menuN3Editor</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
|
|
|
@ -119,6 +119,10 @@ public class SiteAdminController extends FreemarkerHttpServlet {
|
|||
}
|
||||
|
||||
urls.put("siteInfo", urlBuilder.getPortalUrl("/editForm", new ParamMap("controller", "Portal", "id", String.valueOf(urlBuilder.getPortalId()))));
|
||||
|
||||
if (LoginStatusBean.getBean(vreq).isLoggedInAtLeast(LoginStatusBean.DBA)) {
|
||||
urls.put("menuN3Editor", urlBuilder.getPortalUrl("/menuN3Editor"));
|
||||
}
|
||||
|
||||
map.put("urls", urls);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
</#if>
|
||||
|
||||
<#if menuN3??>
|
||||
<form class="" action="${urls.base}/MenuN3EditController" method="post">
|
||||
<form class="" action="${urls.base}/${currentPage}" method="post">
|
||||
<label for="navigatioN3"></label>
|
||||
<textarea name="navigationN3" id="textarea" cols="45" rows="40">
|
||||
${menuN3}
|
||||
|
|
|
@ -20,7 +20,11 @@
|
|||
<#if siteConfig.urls.users??>
|
||||
<li><a href="${siteConfig.urls.users}">User accounts</a></li>
|
||||
</#if>
|
||||
|
||||
|
||||
<#if siteConfig.urls.menuN3Editor??>
|
||||
<li><a href="${siteConfig.urls.menuN3Editor}">Menu N3 editor</a></li>
|
||||
</#if>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</#if>
|
Loading…
Add table
Add a link
Reference in a new issue