Designer's Guide

browsermedia edited this page Sep 13, 2010 · 2 revisions
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.

Page Templates

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.

Scopes

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.