You can use for example:<br><font size="-1"><br><span style="font-family: courier new,monospace;">org.opencms.file.types.</span></font><span style="font-family: courier new,monospace;">CmsResourceTypeXmlPage.</span><code style="font-family: courier new,monospace;">
<b><a href="http://synyx.de/api/opencms6.0.0/org/opencms/file/types/CmsResourceTypeXmlPage.html#getStaticTypeId%28%29">getStaticTypeId</a></b>()</code><br><br>for a page. Have a look at<br><a href="http://synyx.de/api/opencms6.0.0/org/opencms/file/types/A_CmsResourceType.html">
http://synyx.de/api/opencms6.0.0/org/opencms/file/types/A_CmsResourceType.html</a><br><a href="http://synyx.de/api/opencms6.0.0/org/opencms/file/types/CmsResourceTypeXmlPage.html">http://synyx.de/api/opencms6.0.0/org/opencms/file/types/CmsResourceTypeXmlPage.html
</a><br><a href="http://synyx.de/api/opencms6.0.0/org/opencms/file/CmsObject.html#createResource(java.lang.String,%20int,%20byte[],%20java.util.List)">http://synyx.de/api/opencms6.0.0/org/opencms/file/CmsObject.html#createResource(java.lang.String,%20int,%20byte[],%20java.util.List)
</a><br><br><br><div><span class="gmail_quote">2005/12/20, Thierry Collogne <<a href="mailto:tcollogne@hotmail.com">tcollogne@hotmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I'm new to opencms and to learn it, I 'm following the book from Matt<br>Butcher.<br>This book was written for opencms 5, so some features are different.<br><br>I'm no experinmenting with the api and it seems that it has changed a lot.
<br>At some time in the book, a resource is created using the following method:<br><br>createResource(java.lang.String newResourceName, java.lang.String type,<br>java.util.Map properties, byte[] contents, java.lang.Object
parameter)<br><br><br>This method is not present in opencms 6. Instead, there is the following:<br><br>createResource(java.lang.String resourcename, int type, byte[] content,<br>java.util.List properties)<br><br>I have no idea how to use the new one. What value should I use for type
<br>(int???). What objects is the properties List composed of?<br><br>Thanks,<br><br>Thierry Collogne<br><br><br><br><br>_______________________________________________<br>This mail is send to you from the opencms-dev mailing list
<br>To change your list options, or to unsubscribe from the list, please visit<br><a href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div>
<br><br clear="all"><br>-- <br>Mit freundlichen Grüßen<br><br>Siegfried Puchbauer