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. |
Images or any other static content may be served from the /local directory much as described above. Follow these steps:
Create a symlink to the directory within /app/webroot to allow the webserver to serve these files
cd app/webroot ln -s ../../../local/webroot/media |