Make ancestors method available to Comatose layouts
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
MIT-LICENSE
README.md
init.rb

README.md

Comatose CMS Ancestors method

This plugin makes the "ancestors" method available to the @page object in your Comatose layouts. This does not allow access to the method via the CMS administrative area, as that would potentially give content managers access to pages above that which they are permitted.

Example Usage

@page.ancestors.reverse.collect {|crumb| link_to crumb.title, crumb.link }.join(' > ')
Home > About Us > History > Founders

Dependencies

Comatose requires Acts as Tree, so those will obviously be required.

Installation

script/plugin install git://github.com/baldwindavid/comatose_ancestors.git

Copyright (c) 2009 David Baldwin (github.com/baldwindavid)