A couple of ways. Easiest would be to just remove the web-demo*.jar from
WEB-INF/lib. However if you need some of the other demos and just want to
disasble the map preview, the link for it is registered int the spring
context applictionContext.xml file in the web-demo module:
https://github.com/geoserver/geoserver/blob/master/src/web/demo/src/main/java/applicationContext.xml
You would need to comment out the "layerListDemo2" bean. Easiest way would
probably be to unjar the web-demo jar, edit the applictionContext.xml and
jar it back up.
And finally there is also an extension point in geoserver that allows one
to filter out existing components, called ExtensionFilter.
https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/ExtensionFilter.java
With that you could also add your own plugin that would disable the layer
preview.
-Justin
On Tue, Jan 24, 2012 at 7:27 AM, Albert Polze
<[email protected]>wrote:
> Hey list,
>
> I try to change the look of the "log in" or "welcome" page
> (http://localhost:8080/geoserver/web/). My goal is to remove the "layer
> preview" from the sidebar.
>
> I didn't thought it is that complicated to me (also the whole
> "Wicket"-stuff
> is new to me)...
>
> I looked into the different web-...-2.1.1.jar files
> (GS-HOME/webapps/geoserver/WEB-INF/lib/). The only thing I found was the
> MapPreviewPage.html not but the html.code for the sidebar.
> If my understanding is right there must some html-file which contain the
> sidebar-structure for logged out and logged in users. And if I delete the
> wicket-id of the "layer preview"-link it should be gone in the welcome
> page.
>
> Well I hope someone can push me into the right direction,
>
> Albert
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/changing-gs-welcome-page-tp4335342p4335342.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users