Clone this wiki locally
This is a working copy of what will eventually become the ‘Designers Guide’:http://www.browsercms.org/doc/guides/html/designer_guide.html which is part of the Reference Guides hosted at http://browsercms.org.
Useful methods available while working in templates, along with what ‘scopes’ they are available in.
current_page– [page_template, portlet] Returns the Page object which represents the current page.
There are several ‘scopes’ where specific methods are available, these include:
- page_template – These methods are available to developer working on page templates (i.e. app/views/layout/templates).
- portlet – This scope refers to methods available in the ‘render.html.erb’ file associated with a given Portlet. These are the ‘views’ for a specific Portlet.