Here's the relevant parts of a navigation-tab plugin I'm in the process 
of hacking together... and I have just successfully called image_path 
from it.  Hope this helps someone.

class Behavior::Base
  define_tags do
    tag "navtab" do |tag|
      tab = NavTab.new(tag.attr['label'], @request)
     # ...
    end
  end
end

class NavTab 
  include ActionView::Helpers::AssetTagHelper
 
  def initialize (label, request)
    @label = label
 
    @controller = ActionController::Base.new
    @controller.request = request
    p image_path('hi')
  end

# ...
end

_______________________________________________
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to