Add support for homepage configuration.

This commit is contained in:
Paulo Gustavo Veiga
2012-09-01 14:30:32 -03:00
parent 8839b8d333
commit 154a442428
9 changed files with 89 additions and 6 deletions

View File

@@ -82,6 +82,9 @@ admin.user = admin@wisemapping.org
# Site URL. This url will be used during sharing emails and public views.
site.baseurl = http://localhost:8080
# Site Homepage URL. This will be used as URL for homepage location.
site.homepage = c/home
##################################################################################
# Google Analytics Settings
##################################################################################

View File

@@ -47,6 +47,8 @@
<map>
<entry key="google.analytics.enabled" value="${google.analytics.enabled}"/>
<entry key="google.analytics.account" value="${google.analytics.account}"/>
<entry key="google.ads.enabled" value="${google.ads.enabled}"/>
<entry key="site.homepage" value="${site.homepage}"/>
</map>
</property>
</bean>

View File

@@ -1,6 +1,6 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=c/home">
<meta HTTP-EQUIV="REFRESH" content="0; url=c/maps/">
</head>
</html>

View File

@@ -1,3 +1,3 @@
<%
response.sendRedirect("c/home");
response.sendRedirect("c/maps/");
%>

View File

@@ -53,7 +53,7 @@
</div>
<c:if test="${param.onlyActionHeader!=true}">
<div id="headerContent">
<a href="c/home" title="Homepage">
<a href="${requestScope['site.homepage']}" title="Homepage">
<div id="headerLogo">&nbsp;</div>
</a>

View File

@@ -77,7 +77,7 @@
code="REGISTER"/></a></span>
</c:if>
</div>
<a href="c/maps/">
<a href="${requestScope['site.homepage']}">
<div id="headerLogo"></div>
</a>

View File

@@ -70,7 +70,7 @@
<div id="mindplot" onselectstart="return false;"></div>
<div id="embFooter">
<a href="c/home" target="new">
<a href="${requestScope['site.homepage']}" target="new">
<div id="footerLogo"></div>
</a>

View File

@@ -105,7 +105,7 @@
<div id="printLogo"></div>
<div id="embFooter">
<a href="c/home" target="new">
<a href="${requestScope['site.homepage']}" target="new">
<div id="footerLogo"></div>
</a>