Class: Spotlight::FeaturePage

Inherits:
Page
  • Object
show all
Extended by:
FriendlyId
Defined in:
app/models/spotlight/feature_page.rb

Overview

Feature pages

Constant Summary

Constants inherited from Page

Page::MAX_PAGES

Instance Method Summary collapse

Methods inherited from Page

#about_page?, #content=, #content?, #content_changed!, #feature_page?, #featured_image, #lock!, #should_display_title?, #should_generate_new_friendly_id?, #to_partial_path, #top_level_page?, #top_level_page_or_self

Instance Method Details

#display_sidebar?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'app/models/spotlight/feature_page.rb', line 20

def display_sidebar?
  child_pages.published.present? || display_sidebar
end

#thumbnail_image_urlObject



24
25
26
# File 'app/models/spotlight/feature_page.rb', line 24

def thumbnail_image_url
  thumbnail.image.thumb.url if thumbnail && thumbnail.image
end