[opencms-dev] Start with sites from user preferences

Jordi Pedrerol jordi.pedrerol at adequa.net
Thu Jul 13 18:13:14 CEST 2006


The login page is built from a java class (org.opencms.workplace.CmsLogin).
You should change this class or extend it to make your modifications. The
method of the class CmsLogin that shows the login page is displayLoginForm.

Regards.

Jordi Pedrerol.
Adequa Software.

----- Original Message -----
From: <maria.freixes_graells at alcatel.es>
To: <kuku at physik.rwth-aachen.de>; "The OpenCms mailing list"
<opencms-dev at opencms.org>
Sent: Thursday, July 13, 2006 5:52 PM
Subject: Re: [opencms-dev] Start with sites from user preferences


> Many, many thanks Chris!!
> Another thing for how knows:
> Is it possible to change the login page?, when I access to the
> http://mysite/system/login/
> a default window from OpenCms asking for the login and password
> appears.Could I change this page?
>
> Have a nice day,
> Maria
>
> Christoph P. Kukulies escribió:
> > On Thu, Jul 13, 2006 at 03:01:56PM +0200,
maria.freixes_graells at alcatel.es wrote:
> >
> >> Hello!!!
> >>
> >> Anyone knows how to add a new site into "user preferences" menu?
> >> When I edit the "user preferences" only two sites appears for the menu
> >> "Start with site:". These two are:  /sites/default   and   /.
> >> But I want to add /sites/default/prova.
> >> Is it possible?
> >>
> >
> > Maria,
> >
> > you have to add a folder in /sites (I would recommend to do it
> > parallel to /sites/default, so it becomes /sites/prova).
> >
> > Then you have to edit
> > WEB-INF/config /opencms-system.xml and add your site in a site entry.
> > Kind like this:
> > Stop Tomcat
> > <sites>
> >          <workplace-server>http://cms.prova.es</workplace-server>
> >          <default-uri>/sites/prova/</default-uri>
> >          <site server="http://cms.prova.es" uri="/sites/default/"/>
> >          <site server="http://test.prova.es" uri="/sites/prova/">
> >               <alias server="http://test.prova.com"/>
> >          </site>
> > </sites>
> > Start Tomcat
> >
> > The alias is just a suggestion if you have the same site under another
> > domain.
> >
> > --
> > Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
> >
> > _______________________________________________
> > This mail is sent to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
visit
> > http://lists.opencms.org/mailman/listinfo/opencms-dev
> >
>
>


----------------------------------------------------------------------------
----


>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list