Class: CamaleonCms::Widget::Main

Inherits:
TermTaxonomy
  • Object
show all
Defined in:
app/models/camaleon_cms/widget/main.rb

Instance Method Summary collapse

Methods inherited from TermTaxonomy

#children, #in_nav_menu_items, #skip_slug_validation?

Methods included from CustomFieldsRead

#add_custom_field_group, #add_custom_field_to_default_group, #get_field_groups, #get_field_object, #get_field_value, #get_field_values, #get_field_values_hash, #get_fields_grouped, #get_fields_object, #get_user_field_groups, #save_field_value, #set_field_value, #set_field_values, #update_field_value

Methods included from Metas

#delete_meta, #delete_option, #fix_save_metas_options_no_changed, #get_meta, #get_option, #options, #save_metas_options, #save_metas_options_skip, #set_meta, #set_metas, #set_option, #set_options

Instance Method Details

#excerptObject


24
25
26
# File 'app/models/camaleon_cms/widget/main.rb', line 24

def excerpt
  self.get_option("excerpt")
end

#excerpt=(value) ⇒ Object


21
22
23
# File 'app/models/camaleon_cms/widget/main.rb', line 21

def excerpt=(value)
  @excerpt = value
end

#is_simple?Boolean

Returns:

  • (Boolean)

17
18
19
# File 'app/models/camaleon_cms/widget/main.rb', line 17

def is_simple?
  self.status == "simple"
end

#rendererObject


31
32
33
# File 'app/models/camaleon_cms/widget/main.rb', line 31

def renderer
  self.get_option("renderer")
end

#renderer=(value) ⇒ Object


28
29
30
# File 'app/models/camaleon_cms/widget/main.rb', line 28

def renderer=(value)
  @renderer = value
end

#short_codeObject


35
36
37
# File 'app/models/camaleon_cms/widget/main.rb', line 35

def short_code
  "[widget #{self.slug}]"
end