Class: LWS::CorporateWebsite::Page
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::CorporateWebsite::Page
- Defined in:
- lib/lws/apps/corporate_website.rb
Overview
The page class
Instance Attribute Summary collapse
-
#articles ⇒ Array<Article>
The articles that are part of the page.
-
#id ⇒ String
readonly
The slug of the page.
-
#language ⇒ String
The ID of the language of the page (2 character).
-
#menu_kind ⇒ String
The name of the menu (head) the page belongs to.
-
#menu_name ⇒ String
The name of the page in the menu.
-
#news ⇒ Boolean?
Flag whether the page is a news page.
-
#order ⇒ Integer
The order (number) of the page withing the menu.
-
#sitemap ⇒ Boolean
Flag whether the page is included in the sitemap.
-
#youtube_link ⇒ String?
The URL of a YouTube video used for the page.
Attributes inherited from Generic::Model
#created_at, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
#deep_dup, #dig, #reload, #rollback, #save
Instance Attribute Details
#articles ⇒ Array<Article>
136 137 |
# File 'lib/lws/apps/corporate_website.rb', line 136 has_many :articles, uri: "pages/:page_id/articles(/:id)" |
#id ⇒ String (readonly)
165 |
# File 'lib/lws/apps/corporate_website.rb', line 165 attribute :slug |
#language ⇒ String
141 |
# File 'lib/lws/apps/corporate_website.rb', line 141 attribute :language |
#menu_kind ⇒ String
145 |
# File 'lib/lws/apps/corporate_website.rb', line 145 attribute :menu_kind |
#menu_name ⇒ String
149 |
# File 'lib/lws/apps/corporate_website.rb', line 149 attribute :menu_name |
#news ⇒ Boolean?
153 |
# File 'lib/lws/apps/corporate_website.rb', line 153 attribute :news |
#order ⇒ Integer
157 |
# File 'lib/lws/apps/corporate_website.rb', line 157 attribute :order |
#sitemap ⇒ Boolean
161 |
# File 'lib/lws/apps/corporate_website.rb', line 161 attribute :sitemap |
#youtube_link ⇒ String?
169 |
# File 'lib/lws/apps/corporate_website.rb', line 169 attribute :youtube_link |