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?, #clone_for_locale, #content, #content=, #content?, #content_changed!, #content_type, #feature_page?, #featured_image, #home_page?, #lock!, #should_display_title?, #should_generate_new_friendly_id?, #thumbnail_image_url, #title, #to_partial_path, #top_level_page?, #top_level_page_or_self, #translated_page_for, #updated_after?

Instance Method Details

#display_sidebar?Boolean

Returns:

  • (Boolean)


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

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