Switch to the offline project

(Difference between revisions)
Jump to: navigation, search
(added sample code)
 
Line 1: Line 1:
// setting current project to 'Offline'
+
// setting current project to 'Offline'
CmsRequestContext cmsContext = cmsObject.getRequestContext();
+
CmsRequestContext cmsContext = cmsObject.getRequestContext();
CmsProject offlineProject = cmsObject.readProject("Offline");
+
CmsProject offlineProject = cmsObject.readProject("Offline");
cmsContext.setCurrentProject(offlineProject);
+
cmsContext.setCurrentProject(offlineProject);

Revision as of 22:49, 14 June 2007

// setting current project to 'Offline'
CmsRequestContext cmsContext = cmsObject.getRequestContext();
CmsProject offlineProject = cmsObject.readProject("Offline");
cmsContext.setCurrentProject(offlineProject);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox