[opencms-dev] Re: Direct edit
mahesh babu
ksmaheshbabu at yahoo.com
Mon Feb 27 18:06:47 CET 2006
Hi thomas,
Thanks for your input. I need some more details. I got
confused.
Where to add this code.
P means project id or name. If it is offline how to
mention there.
And also i am not able to debug how it is tracking
offline and online login. When I tried to login from
homepage it is calling index.jsp from sites/default.
But if I login to workplace it is calling
system/login. So it tried to change in template
login_element.jsp. But always it shows project as
null.
Can you help me out.
Thanks
Mahesh
--- Thomas März <thomas.maerz at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> 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
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the opencms-dev
mailing list