[Radiant] Shards in Radiant 0.6.7
Sean Cribbs
seancribbs at gmail.com
Mon May 19 09:18:23 CDT 2008
Casper,
"page" is a method/property on the admin object. Change that to
admin.page.index.add :node, 'file_based_layout_column'
Sean
Casper Fabricius wrote:
> Hi,
>
> Thanks for all the great work going on in the Radiant community.
>
> I'm upgrading one of my extensions to be compatible with 0.6.7, and I
> am migrating it to use the shards feature at the same time. While the
> release of 0.6.7 indicates that shards "has been folded into the
> core", I can't get it work right. I can see that the "render_region"
> calls are present in the views, but when I try to plugin my own
> partials in the extension activation, I get an error:
>
>
> def activate
> ...
> page.index.add :node, 'file_based_layout_column'
> end
>
>
> /Users/casper/Projects/Work/radiant-0.6.7/vendor/extensions/file_based_layout/file_based_layout_extension.rb:16:in
> `activate': undefined local variable or method `page' for
> #<FileBasedLayoutExtension:0x24c334c> (NameError)
> from
> /Users/casper/Projects/Work/radiant-0.6.7/lib/radiant/extension.rb:34:in
> `activate'
>
>
> Does this mean I still have to add the shards extension and put it
> first in my extension load order? Or have I misunderstood how to use
> tie in my own stuff in Radaint using shards? Does anyone have a link
> to an up-to-date tutorial on shards?
>
> Cheers,
> Casper Fabricius
> _______________________________________________
> Radiant mailing list
> Post: Radiant at radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
More information about the Radiant
mailing list