Overriding "breadcrumbs" tag

Hi. I’ve modified the breadcrumbs tag in page_context.rb. But I’d
rather like to override that definition instead of modifying the
original file. Where could I implement my new tag definition outside
the default file? Thank you.

Maurizio B. wrote:

Hi. I’ve modified the breadcrumbs tag in page_context.rb. But I’d
rather like to override that definition instead of modifying the
original file. Where could I implement my new tag definition outside
the default file? Thank you.

Create a plugin. In the init.rb file define the following:

Behavior::Base.define_tags do
tag “breadcrumbs” do
# new definition here
end
end

Hope that helps.


John L.
http://wiseheartdesign.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs