Hi,<br><br>in the meantime I made some progress. This page was of help:<br><br><a href="http://opencms-wiki.org/Write_a_file_programatically">http://opencms-wiki.org/Write_a_file_programatically</a><br><br>I think I can do all I need using functionality of CmsObject ( <a href="http://www.opencms.org/javadoc/core/org/opencms/file/CmsObject.html">http://www.opencms.org/javadoc/core/org/opencms/file/CmsObject.html</a> )<br>
<br>Just one missing part would be file uploads.<br><br>Ideally I would like to upload a logo from my "Site Creator" page.<br><br>Does the OpenCms api allow to do custom file uploads where you can specify the target location in the vfs?<br>
<br>Best regards,<br>Yves<br><br><div class="gmail_quote">On 3 April 2011 19:18, Yves Glodt <span dir="ltr"><<a href="mailto:yg@mind.lu">yg@mind.lu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>imagine you have a "template site" in /sites/template, and it contains the following files:<br><br><ul><li>template.jsp</li><li>site-config.jsp<br></li><li>style.css</li><li>index.html</li><li>about.html</li>
<li>contact.html</li></ul>Now what I would like to do is to is to create a "Site Creator" jsp page (which will be located in another site in fact, but that should not matter) which has a simple<br>form to collect some data like e.g. the title, some color settings, logo selection, etc of the new site to be created.<br>
<br>When that form is then being submitted I would like to create a subfolder in /sites/production (e.g. /sites/production/site01) and copy the files from /sites/template<br>over there (and probably create a sibling to template.jsp). At the end the new site should also be published.<br>
<br>Does anyone have some example code (CmsObject looks good to me) which could be useful in this case?<br><br>Best regards,<br><font color="#888888">Yves<br>
</font></blockquote></div><br>