Thanks Sean,

I stuffed around for a bit and discovered that the files within the lib/
folder of the plugin had to be within the lib/ folder of my extension.

I then loaded it using the following in my activate method:

Page.send :include, CalendarHelper

Dylan

On 8/28/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
>
> Dylan,
>
> You're on the right track with that.  Radiant pages do not use
> ActionView.  I would see if you can mix the CalendarHelper into your tag
> module instead of ActionView::Base and use it from inside a tag
> definition.
>
> Sean
>
> Dylan Nichols wrote:
> > Hi
> >
> > I've built a simple events extension that has it's own tags. I'm
> currently
> > trying to incorporate the calendar_helper plugin from Topfunky:
> >
> > http://topfunky.net/svn/plugins/calendar_helper/
> >
> > I want to be able to generate a simple calendar from a Radius tag but I
> > always get an undefined method error. I've used the page_attachments
> > extension as a basic guide for incorporating a plugin into a Radiant
> > extension. I've placed the plugin in the lib/ folder of my extension and
> > have put the content of the init.rb file into the activate method.
> >
> > Is there a way I definitely can tell if the plugin has been loaded?
> >
> > The other possible issue might be that the plugin is mixed into
> > ActionView::Base which isn't available from Radius tags:
> >
> > ActionView::Base.send :include, CalendarHelper
> >
> > Any suggestions would be greatly appreciated.
> >
> > Cheers
> >
> > Dylan
> > _______________________________________________
> > Radiant mailing list
> > Post:   [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> >
>
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to