[opencms-dev] Need Help with Direct Editing

Mario D'Angelo mario.dangelo at e-dea.it
Tue Dec 6 13:15:20 CET 2005


Hi all,

 

I built a WebSite using templateone. It works very well, but it doesn't show
any Direct Edit button on published WebSite. I perform a standard Login
using:

 

cmsLogin.login(username, password);

 

I also added the following lines after login to switch to the "Offline"
project:

 

CmsTemplateBean cms = new CmsTemplateBean(pageContext, request, response);

CmsObject cmsObj = cms.getCmsObject();

CmsProject prjObj = cmsObj.readProject("Offline");

 

                                   if (cmsLogin.isLoggedIn()) 

                                   {

 
cms.getRequestContext().setCurrentProject(prjObj);

                                   }

 

But it doesn't work at all.

 

Please, somebody help me out with this, it is the last element for
completing the WebSite I have been working on for months.

 

Thank you in advance,

 

Mario.

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20051206/5ee67300/attachment.html>


More information about the opencms-dev mailing list