Wednesday 24 March 2010 3:25:43 am
I'm setting up an installation of ez that will contain a large number of sites and custom extensions. My first thoughts about this, is that it would be nice to be able to use a tree-structure inside the extension directory to improve the overall usability and layout for this. A tree-structure would also allow me to be more flexible in how each site/extension is hosted in a version control system, for example if using GIT each top "package" or "node" can be in it's own repository. This is a first thought/blueprint of a layout: extension/
... ez core extensions ...
common_custom_extensions/
extension1
extension2
sites/
example_site1/
site_extension_with_design
custom_site_extension
example_site2/
extensions ...
Even though nothing in the documentation or examples indicate that this is possible, it actually is, by specifying the relative path to each extension in 'ActiveExtensions', 'ActiveAccessExtensions' and 'DesignExtensions'. Example:
[ExtensionSettings]
DesignExtensions[]=sites/example_site1/site_extension_with_design
ActiveAccessExtensions[]=sites/example_site1/custom_site_extension So the big question is; are the ini settings meant to contain the path, or the name of the extension? Cause if it's a coincidence that this works, and that the support for this may be broken in any future version, then I'd think again to structure it this way. What are your thoughts?
|