As of v1.0.0, if you would like to publish mostly static content, such as policy documents or help information, as part of the Registry, you may do so by placing these documents in /local/View/Pages/public
. Each document should end with the extension .ctp
(Cake Template) and may contain HTML (including JavaScript) and PHP.
Once uploaded, documents are accessible without authentication at http://yourserver/registry/pages/public/filename
, with or without the .ctp
extension.
Do not use this mechanism for accessing the Registry database. Only present public, generally static information, otherwise you risk compromising Registry security and exposing restricted information.
If you need to work with Registry content, you most likely need to write a Registry Plugin.
Publishing Images and Other Media
Images or any other static content may be served from the /local directory much as described above. Follow these steps:
- Create a directory in which to store your media in /local/webroot/, for example /local/webroot/media.
Create a symlink to the directory within /app/webroot to allow the webserver to serve these files
Add Symlink from within /app/webrootcd app/webroot ln -s ../../../local/webroot/media
- Ensure that /local/webroot/media and files therein are owned by the web server user (e.g. apache)
- Place any files you wish in /local/webroot/media and they can be accessed at /media/filename. These can now be used with any COmanage content that can reference such files, such as Themes or Service Logos.