Method: ScrivitoHelper#scrivito_tag_list
- Defined in:
- app/helpers/scrivito_helper.rb
#scrivito_tag_list(tag_name, obj, method_name, options = {}) {|list, child| ... } ⇒ String
Renders a navigation ready for in-place editing.
If a navigation is rendered using this helper method, a special menu is attached to it that lets you change the order of the child pages or insert a new child.
For making the child pages sortable, the parent Obj requires a referencelist
attribute named child_order
. When creating a page model using the page generator, such an attribute is automatically added to the model.
137 138 139 |
# File 'app/helpers/scrivito_helper.rb', line 137 def scrivito_tag_list(tag_name, obj, method_name, = {}, &block) Scrivito::ChildListTag.new(tag_name, obj, method_name.to_s, self).render(, &block) end |