Actions
Bug #15464
closedPagelets should be keyed by the partial they appear on
Description
Now the key is "#{controller}/#{action}" which forces people that want to use this extension point to know the actions the partial is used in.
For example:
assume a pagelet placeholder in hosts/_form.html.erb:
render_pagelets_for(:main_tab_fields, :host => @host, :form => f)
In order to add content to this pagelet, you have to register your pagelet for multiple actions:
%w(hosts/new hosts/edit hosts/process_hostgroup).each do |action| mgr = Pagelets::Manager.new action mgr.add_pagelet :main_tab_fields, :partial => 'hosts/puppet/main_tab_fields', :priority => 100 end
Actions