Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

Table of Contents

Documents (HTML and PHP)

As of Registry v1.0.0, if you would like to publish mostly static content , (such as policy documents or help information, as part of the ) with the look and feel of 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[s]://yourserver/registry/pages/public/filename, with or without the .ctp extension.

Warning

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 and Other Media

Images As of Registry v3.2.0, images or any other static content may also 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

...

languagebash
titleAdd Symlink from within /app/webroot

...

, by placing these files in /local/webroot/media

...

. Make sure any files you upload there are readable by the web server user (e.g. apache).

...

Once uploaded, files are accessible without authentication at http[s]://yourserver/registry/media/filename

...

, and can

...

be used

...

anywhere, including Registry content such as mostly static documents (described above), Themes, or Service Logos.