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
-
#article_ids ⇒ Array<Integer>
The IDs of the articles that are part of the page.
-
#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
#article_ids ⇒ Array<Integer>
Returns the IDs of the articles that are part of the page.
138 |
# File 'lib/lws/apps/corporate_website.rb', line 138 attribute :article_ids |
#articles ⇒ Array<Article>
Returns the articles that are part of the page.
142 143 |
# File 'lib/lws/apps/corporate_website.rb', line 142 has_many :articles, uri: "pages/:page_id/articles(/:id)" |
#id ⇒ String (readonly)
Returns the slug of the page.
171 |
# File 'lib/lws/apps/corporate_website.rb', line 171 attribute :slug |
#language ⇒ String
Returns the ID of the language of the page (2 character).
147 |
# File 'lib/lws/apps/corporate_website.rb', line 147 attribute :language |
#menu_kind ⇒ String
Returns the name of the menu (head) the page belongs to.
151 |
# File 'lib/lws/apps/corporate_website.rb', line 151 attribute :menu_kind |
#menu_name ⇒ String
Returns the name of the page in the menu.
155 |
# File 'lib/lws/apps/corporate_website.rb', line 155 attribute :menu_name |
#news ⇒ Boolean?
Returns flag whether the page is a news page.
159 |
# File 'lib/lws/apps/corporate_website.rb', line 159 attribute :news |
#order ⇒ Integer
Returns the order (number) of the page withing the menu.
163 |
# File 'lib/lws/apps/corporate_website.rb', line 163 attribute :order |
#sitemap ⇒ Boolean
Returns flag whether the page is included in the sitemap.
167 |
# File 'lib/lws/apps/corporate_website.rb', line 167 attribute :sitemap |
#youtube_link ⇒ String?
Returns the URL of a YouTube video used for the page.
175 |
# File 'lib/lws/apps/corporate_website.rb', line 175 attribute :youtube_link |