Class: ContentPage
- Inherits:
-
Page
- Object
- ActiveRecord::Base
- Page
- ContentPage
- Defined in:
- app/models/content_page.rb
Overview
Schema Information
Table name: pages
id :integer(4) not null, primary key title :string(255) parent_id :integer(4) starttime :datetime endtime :datetime sorting :integer(4) hidden :boolean(1) default(TRUE) :boolean(1) default(FALSE) subtitle :string(255) :string(255) description :text abstract :text :string(255) :string(255) target :string(255) type :string(255) default("ContentPage") shortcut_page_id :integer(4) shortcut_mode :string(255) default("first_subpage") ext_url :string(255) created_by :integer(4) created_at :datetime updated_at :datetime deleted_at :datetime ancestry :string(255) template_id :integer(4) :string(255) url :string(255)
Instance Method Summary
-
- (Object) edit_fields
the labels will be used as locale keys required attributes:
- label
- field_type
- value
- options
- text_field
- text_area
Methods inherited from Page
#absolute_url, #dummy_type, #dummy_type=, find_by_path, #icon, #is_leaf?, #link, #path, #text, #update_sorting
Instance Method Details
- (Object) edit_fields
the labels will be used as locale keys required attributes:
- label
- field_type
- value
optional attributes:
- options
available field types:
- text_field
- text_area
returns the input fields and labels, that should be displayed in the "settings" tab, as an hash
47 48 49 |
# File 'app/models/content_page.rb', line 47 def edit_fields [ { :label => "subtitle", :field_type => "text_field", :value => subtitle } ] end |