Render one comatose page inside another

2 views
Skip to first unread message

svs

unread,
Jul 19, 2009, 4:20:00 PM7/19/09
to Comatose Plugin
Is it possible to render one comatose page inside another? Something
like Radiant snippets?

svs

unread,
Jul 20, 2009, 5:51:19 AM7/20/09
to Comatose Plugin
Indeed it is, with a drop like this:

Comatose.define_drop 'elements' do
def method_missing(name, params = nil)
c = ComatosePage.find_by_slug(name.to_s)
return (c.nil? ? "" : c.body)
end
end

and then using {{ elements.desired_page_slug }}

cheers
Reply all
Reply to author
Forward
0 new messages