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>
Returns the articles that are part of the page.
137 138 |
# File 'lib/lws/apps/corporate_website.rb', line 137 has_many :articles, uri: "pages/:page_id/articles(/:id)" |
#id ⇒ String (readonly)
Returns the slug of the page.
166 |
# File 'lib/lws/apps/corporate_website.rb', line 166 attribute :slug |
#language ⇒ String
Returns the ID of the language of the page (2 character).
142 |
# File 'lib/lws/apps/corporate_website.rb', line 142 attribute :language |
#menu_kind ⇒ String
Returns the name of the menu (head) the page belongs to.
146 |
# File 'lib/lws/apps/corporate_website.rb', line 146 attribute :menu_kind |
#menu_name ⇒ String
Returns the name of the page in the menu.
150 |
# File 'lib/lws/apps/corporate_website.rb', line 150 attribute :menu_name |
#news ⇒ Boolean?
Returns flag whether the page is a news page.
154 |
# File 'lib/lws/apps/corporate_website.rb', line 154 attribute :news |
#order ⇒ Integer
Returns the order (number) of the page withing the menu.
158 |
# File 'lib/lws/apps/corporate_website.rb', line 158 attribute :order |
#sitemap ⇒ Boolean
Returns flag whether the page is included in the sitemap.
162 |
# File 'lib/lws/apps/corporate_website.rb', line 162 attribute :sitemap |
#youtube_link ⇒ String?
Returns the URL of a YouTube video used for the page.
170 |
# File 'lib/lws/apps/corporate_website.rb', line 170 attribute :youtube_link |