Thanks Paul, that is lot more helpful than smart-asses' passages.<br><br><div class="gmail_quote">2009/9/1 Paul-Inge Flakstad <span dir="ltr"><<a href="mailto:flakstad@npolar.no">flakstad@npolar.no</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Just some notes on your specific issues here:<br>
<br>
I don't use projects other than the standard Online and Offline one. I almost never use the Online project for anything (I prefer having another browser window open, where I'm not logged into OpenCms.) I'm sure there exists a need for projects, but I have yet to encounter that need. What I do when creating a site, is I add it in a few simple steps. Those steps are described around the web, but basically it goes like this:<br>
<br>
(Below I'm assuming you're using Tomcat and Apache. I'm also assuming that you've stripped away :8080 and /opencms/opencms from the OpenCms' URI - if you need info on how to do that, please see <a href="http://tinyurl.com/mdtedg" target="_blank">http://tinyurl.com/mdtedg</a>)<br>
<br>
1.) Create a "site-folder" under /sites/:<br>
Select "/" from the "Site" dropdown, and then create a new folder inside the "/sites/" folder, so that it has the URI "/sites/mysite/".<br>
<br>
2.) Edit the opencms-system.xml to map your domain name to the new folder (or: add a "site" to OpenCms):<br>
<sites><br>
<workplace-server><a href="http://localhost" target="_blank">http://localhost</a></workplace-server><br>
<default-uri>/sites/default/</default-uri><br>
<site server="<a href="http://www.mysite.com" target="_blank">http://www.mysite.com</a>" uri="/sites/mysite/"/><!-- LINE ADDED IN THIS STEP --><br>
</sites><br>
<br>
3.) Add the site name as an alias in the relevant VirtualHost section of Apache's config file:<br>
ServerAlias <a href="http://www.mysite.com" target="_blank">www.mysite.com</a><br>
<br>
4.) Make sure your DNS has the correct mapping of the domain name.<br>
<br>
5.) Restart Tomcat and Apache.<br>
<br>
6.) Check that your new site is now present in the "Site" dropdown in OpenCms' workplace explorer, and that you're able to access files in your new site folder by using the domain name you entered.<br>
<br>
<br>
About the fiddling-around-with-xml-config-files issue: yes, this is a downside to OpenCms. It most definitively is. And it is a bit overwhelming at first glance - I remember that part vividly. However, you'll typically be editing only very limited parts of these files. This means you'll become familiar with them (or at least their relevant sections) pretty fast. Hopefully, somebody will write a tool that allows for a more user-friendly way of editing the settings in these files, but until that happens, don't be alarmed by the fact that you'll have to edit them manually. There's really no need to. ;-)<br>
<br>
<br>
So, the short version of my advice is: forget about projects other than Offline/Online, stick to creating new sites instead of new projects. And don't worry about having to edit xml files manually.<br>
<br>
Good luck with OpenCms! :D<br>
<br>
Cheers,<br>
<font color="#888888">Paul<br>
</font><div class="im"><br>
> -----Original Message-----<br>
> From: <a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a><br>
> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>] On Behalf Of Gregor Schneider<br>
> Sent: 1. september 2009 16:57<br>
> To: The OpenCms mailing list<br>
</div><div><div></div><div class="h5">> Subject: Re: [opencms-dev] Beginner completely lost<br>
><br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
><br>
> Shi,<br>
><br>
> On Tue, Sep 1, 2009 at 3:10 PM, Shi Yusen<<a href="mailto:shiys@langhua.cn">shiys@langhua.cn</a>> wrote:<br>
> > I remembered there was a PPT on OpenCms's struture which<br>
> made OpenCms<br>
> > quite easy to understand. The main concept is something like this:<br>
> ><br>
> > 1. an HTTP request to servlet container such as Tomcat;<br>
> > 2. The servlet container forwards the request to OpenCms;<br>
> > 3. In OpenCms servlet, enter org.opencms.main.OpenCms first;<br>
> > 4. org.opencms.main.OpenCms produces an CmsObject instance;<br>
> > 5. The CmsObject instance contains the resource to visit<br>
> and security<br>
> > who visits;<br>
> > 6. If the user has permissions to visit, using the loader of the<br>
> > resource to load it to the response; if not, error in response.<br>
> > 7. You can extend resource, loader, user, group, permission.<br>
> ><br>
><br>
> What you've pointed out above is almost common to any CMS, and this is<br>
> not the point why I'm completely lost.<br>
><br>
> What's really puzzling me is:<br>
><br>
> - - Project:<br>
><br>
> Offline / Online - so far understood. However, if I create a website<br>
> from scratch, first thought would be to create a new project. But I<br>
> couldn't find any source how this could be achieved. In one of the<br>
> more helpfull tutorials, the editor writes<br>
><br>
> <quote><br>
> Projects - Like I said above, is either Online, Offline, or some<br>
> subset of Offline. Basically, as far as I can tell, these are a way<br>
> to organize folders in the VFS that you use for different<br>
> purposes. For a website, you might define a project containing all<br>
> the<br>
> relevant directories from the VFS. Then, if you choose that<br>
> project, you will see just those folders and files.<br>
> </quote><br>
><br>
> So does that mean, a new project is always part of the<br>
> Offline-Project?<br>
> And when I create a new project, all files from the Offline-project<br>
> are shown in the explorer - are they part of the new project or not?<br>
><br>
> I rather feel that what I'm understanding as a "project", in OpenCMS<br>
> it's more what they call a "Module" - strange way of thinking,<br>
> though..<br>
><br>
> Not to menation that this tutorial is referring to version 6, meaning<br>
> it's quite outdated.<br>
><br>
> Next, quoting from "OpenCms 7 Development":<br>
><br>
> <quote><br>
> Registering the Content Type<br>
> To register the schema file with OpenCms, we need to add an entry<br>
> into the module database. Modules are defined in an XML<br>
> configuration database maintained by OpenCms. For most items, we<br>
> want to let OpenCms manage the contents of this file by<br>
> using the Administrative interface, as no interface has been<br>
> provided for adding new content types. We thus have to edit the<br>
> OpenCms module database file directly. The module database file<br>
> can be found at:<br>
> <opencms_install>/WEB-INF/config/opencms-modules.xml<br>
> Let's edit this file and....<br>
> </quote><br>
><br>
> Meaning, I'll have to fiddle around with xml- and property-files on<br>
> the serverside each time I'm creating a new module which I personally<br>
> feel a bit anachronistic.<br>
><br>
> Anyway, today I've sent a mail to Alkacon asking for the<br>
> 1-day-inhouse-evaluation-workshop ASAP from which I hope to get some<br>
> insights and hopefully a simple site with a new template up & running.<br>
><br>
> As you can see, I'm not to ditch OpenCMS since I like the<br>
> following points:<br>
><br>
> - - it's Java<br>
> - - it's OpenSource<br>
><br>
> But what I really, really recommend to the OpenCMS-developers is to<br>
> create a tutorial form dummies "How to setup a website from scratch".<br>
> I figure that other companies which are not willing / able to spend<br>
> money for an Evaluation Workshop but having time / budget-pressure,<br>
> might ditch OpenCMS instantly and might move to some PHP-solution<br>
> which might give quick results but less security.<br>
><br>
> To all the guys contributing to this thread:<br>
><br>
> Thanks for all your recommendations and hints, I really appreciate<br>
><br>
> Cheers!<br>
><br>
> Gregor<br>
> - --<br>
> just because your paranoid, doesn't mean they're not after you...<br>
> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2<br>
> gpgp-key available<br>
> @ <a href="http://pgpkeys.pca.dfn.de:11371" target="_blank">http://pgpkeys.pca.dfn.de:11371</a><br>
> @ <a href="http://pgp.mit.edu:11371/" target="_blank">http://pgp.mit.edu:11371/</a><br>
> skype:rc46fi<br>
><br>
> -----BEGIN PGP SIGNATURE-----<br>
> Version: GnuPG v1.4.6 (MingW32)<br>
> Comment: Use GnuPG with Firefox : <a href="http://getfiregpg.org" target="_blank">http://getfiregpg.org</a><br>
> (Version: 0.7.8)<br>
><br>
> iD8DBQFKnTYk07P+AosxcLIRAj3QAJ99UjutZgTZOLXt65phn1RnkH3kdwCaA/2v<br>
> Q/2kpCUEWNPl0Qm7aAUVjxQ=<br>
> =/JR+<br>
> -----END PGP SIGNATURE-----<br>
><br>
> _______________________________________________<br>
> This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list,<br>
> please visit<br>
> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
><br>
<br>
_______________________________________________<br>
This mail is sent 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://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</div></div></blockquote></div><br>