[opencms-dev] RE: Add Templates to opencms
Claus Priisholm
cpr at codedroids.com
Tue Apr 18 09:42:51 CEST 2006
Make sure you're in a offline type of project before you try to make
changes...
manolo fdez wrote:
>
> I tried with "lockResource" but I get this error:
>
> Error locking resource "/sites/default/index.jsp" with mode
> "CmsLock.C_MODE_COMMON"
>
> <%
> org.opencms.file.CmsObject ocms =
> org.opencms.main.OpenCms.initCmsObject("Guest");
>
> ocms.loginUser("Admin2", "Admin2"); // an existing user of group
> Administrators
>
> org.opencms.file.CmsProperty rProp = new
> org.opencms.file.CmsProperty("ResourceProp", null, "Resource property
> value", true);
>
> ocms.lockResource("/sites/default/index.jsp");
> ocms.writePropertyObject("/sites/default/index.jsp", rProp); // an existing
> file
> ocms.unlockResource("/sites/default/index.jsp");
> %>
>
>
> --
> View this message in context: http://www.nabble.com/Add-Templates-to-opencms-t1391802.html#a3948794
> Sent from the OpenCMS - Dev forum at Nabble.com.
>
>
> _______________________________________________
> 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
>
--
Claus Priisholm, CodeDroids ApS
Phone: +45 48 22 46 46
cpr (you know what) codedroids.com - http://www.codedroids.com
cpr (you know what) interlet.dk - http://www.interlet.dk
--
Javadocs and other OpenCms stuff:
http://www.codedroids.com/community/opencms
More information about the opencms-dev
mailing list