[opencms-dev] How can I make user to visit offline project?
Alejandro Alves
alejandro.alves at opencmshispano.es
Fri Oct 28 10:52:49 CEST 2011
Hello,
To change the project from online to offline you can do it like this:
CmsRequestContext cmsContext = cmsObj.getRequestContext();
CmsProject curProject = cmsContext.currentProject();
if(curProject.isOnlineProject()){
CmsProject offlineProject = cmsObj.readProject("Offline");
cmsContext.setCurrentProject(offlineProject);
}
On Fri, Oct 28, 2011 at 10:49 AM, 20726424 <20726424 at qq.com> wrote:
> By default OpenCms object uses the project in online,so when someone
> visit the project,he will visit the project in online.
> How can I make them to visit the project in offline?
>
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111028/d7a4b85d/attachment.htm>
More information about the opencms-dev
mailing list