Customizability for Several Clients
Line 17: | Line 17: | ||
=> Solution 2: On the root folder for a given customer site, you can set the following properties: | => Solution 2: On the root folder for a given customer site, you can set the following properties: | ||
− | |||
− | ''restypes.indexpage'' : a list of resource types that shall be available for creation of an index file in a new folder, seprated by "|" (again no whitespaces inbetween). | + | - ''restypes.available'' : a commma separated list of resource type names (without whitespaces inbetween) for the "New" dialogue. |
+ | |||
+ | - ''restypes.indexpage'' : a list of resource types that shall be available for creation of an index file in a new folder, seprated by "|" (again no whitespaces inbetween). |
Revision as of 09:34, 5 October 2007
If you want to host one opencms instance for multiple customers, you need to tweak OPenCMS a bit. With version 7 and the introduction of organizational units a big step towards this direction has been done, but there are still some things you need to know:
- Problem 1: On the login screen, you need to choose your "organizational unit" and thus also see what other organizational units (= customers) there are.
=> Solution 1: OpenCms 7 provides also a preselected OU based login form. you can give your customer a login url like:
Invalid language.
You need to specify a language like this: <source lang="html">...</source>
Supported languages for syntax highlighting:
actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf, c, c_mac, caddcl, cadlisp, cfdg, cfm, cpp, cpp-qt, csharp, css, d, delphi, diff, div, dos, eiffel, fortran, freebasic, gml, groovy, html4strict, idl, ini, inno, io, java, java5, javascript, latex, lisp, lua, matlab, mirc, mpasm, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, perl, php, php-brief, plsql, python, qbasic, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, vhdl, visualfoxpro, winbatch, xml, z80
If you want to totally hide the login page with the OU dropdown, you could also use rewrite rules in your web server.
- Problem 2: In the dialogues for "creation of a new resource" and "changing a resource type", you see all resource types registered with system modules. It is not possible to limit some of them to particular sites, which again lets customers see other customers' template-elements.
=> Solution 2: On the root folder for a given customer site, you can set the following properties:
- restypes.available : a commma separated list of resource type names (without whitespaces inbetween) for the "New" dialogue.
- restypes.indexpage : a list of resource types that shall be available for creation of an index file in a new folder, seprated by "|" (again no whitespaces inbetween).