[opencms-dev] Re: Direct edit

Thomas März thomas.maerz at gmail.com
Sat Feb 25 13:21:45 CET 2006


mahesh babu <ksmaheshbabu at yahoo.com> writes:

> After user logs in using a login form, they are still
> in the Online project so i am not able to edit. How
> can user switch to the Offline project automatically
> without using the workplace?
>
> I have set the project to offline in preference even
> though its not working.
>
> Anybody can help me what code changes to be done to
> the pages. 

| cms = new CmsJspActionElement( pageContext, request, response );
| CmsProject cmsProject = cms.getCmsObject().readProject( p );
| cms.getRequestContext().setCurrentProject( cmsProject );
| cms.getRequestContext().setSiteRoot( "/sites/default" ); 


Regards,
Thomas




More information about the opencms-dev mailing list