spec/tmp/app/models/sunrise/sunrise_structure.rb in sunrise-cms-0.4.2 vs spec/tmp/app/models/sunrise/sunrise_structure.rb in sunrise-cms-0.5.0.rc1
- old
+ new
@@ -20,11 +20,17 @@
edit do
field :title
field :redirect_url
field :slug
#field :headers, :partial => true
- field :parent_id, :collection => Structure.nested_set_options() {|i| "#{'–' * i.depth} #{i.title}"}, :if => lambda { |s| s.moveable? }
- field :kind, :collection => StructureType.all, :include_blank => false
- field :position, :collection => PositionType.all, :include_blank => false
- field :is_visible, :boolean => true
+ field :parent_id, :collection => lambda { Structure.nested_set_options() {|i| "#{'–' * i.depth} #{i.title}"} }, :if => lambda { |s| s.moveable? }
+ field :kind, :collection => lambda { StructureType.all }, :include_blank => false
+ field :position, :collection => lambda { PositionType.all }, :include_blank => false
+ field :is_visible, :as => :boolean
+
+ group :meta_tags, :holder => :sidebar do
+ field :tag_title
+ field :tag_keywords
+ field :tag_description
+ end
end
end