[opencms-dev] Site Creation Starategy
Arash Kaffamanesh
arash.kaffamanesh at pomegranate.de
Sun Dec 11 19:00:39 CET 2005
Alireza,
>> 1) Should we create each site as a module, because they have their
own template, or should we simply define each site as a folder?
each site is a folder under /sites folder and the modules are created
under /system/modules folder, for instance you create:
/sites
/default
/company1
/company2
...
now you can create for each company 1 module under /system/modules
/system/modules
/com.company1.frontend
....
/elements
foot-company1
/templates
content-template-company1
/com.company2.frontend
...
/elements
foot-company2
/templates
content-template-company2
now you shall set the permissions for content-template-company1 so that
the company 2 members can't select the content template of company1 from
the dropdown menue, by denying the view permissions for this template to
company2 members and vice versa.
The other scenario could be to have one module for all companies (which
I don't highly recommend, but it could be recommendable in some
scenarios). For elements reuse (common elements and resources such as
search element or javascript navigation, which can be used from every
content template) I recommend to hava one master module as
/system/modules
/com.master.frontend
/elements
search.jsp
search-result.jsp
sitemap.jsp
/resources
/js
menue-navigation.js
and resuse the elements from each module, so that you don't have to copy
and maintain the elements for each company seperately!
Note: the multisite scenario has some weeknesses, if you want to give
administrative rights to members of each company, then the
administrators of company1 can change for instance the passwords of
company2 members :-). I this case you shall setup multiple tomcat
instances (one tomcat installation and multiple container definitios)
and deploy several opencms.war's. (I do this, because every of my
clients want administartive rights for themself, for creating users for
instance). And the other issue with multisite is the fact that, if you
have to restart tomcat sometimes (for instance if you create resource
definitions for xmlcontent in xml files) the website of all companies
will be down for 1-2 minutes! And if your clients have to use mail
functionalities, you can't define several email accounts!
> 2) How should we configure galleries for each site?
as normal and use the permissions mechanism described above to give only
the possibility to select galleries for each company seperately (I mean
company1 members can't see the galleries of company2).
I've created a new thread on our forum, you are more than welcome to
visit and participate to this thread:
http://www.pomegranate.de:9000/cms/forum/viewthread?thread=52
HTH,
Kind Regards,
Ba salamhaye garm as Berlin'e sard :-)
Arash
______________________________________
|arash kaffamanesh
|
|http://www.pomegranate.de
|global portal & content management solutions
|______________________________________
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Mr Alireza Fattahi
Sent: Sonntag, 11. Dezember 2005 09:04
To: opencms-dev at opencms.org
Subject: [opencms-dev] Site Creation Starategy
Hi,
What is the best strategy if we want to create and manage many sites
with OpenCMS? Each site has its own look and feel and templates. Each
site may have its own users to update and manage their own site. There
will be one manager which has full access to all sites.
Of course because we want to have one tomcat and mysql, we should do
what is mentioned in "Configure OpenCms, httpd and Tomcat to serve
multiple sites" document. But we don't know that:
1) Should we create each site as a module, because they have their own
template, or should we simply define each site as a folder?
2) How should we configure galleries for each site?
Are there any best practices out there which suggest a high level
infrastructure configuration with OpenCms?
Regards,
Alireza Fattahi
_____
To help you stay safe and secure online, we've developed the all new
<http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http:/
/uk.security.yahoo.com/> Yahoo! Security Centre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20051211/804fc8f9/attachment.htm>
More information about the opencms-dev
mailing list