Class: Page

Overview

‘Page` represents a page on the website. By default, it includes all Trek model concerns, but you can disable the ones you don’t need.

Constant Summary

Constants included from Trek::Sectionable

Trek::Sectionable::SECTIONS, Trek::Sectionable::SECTION_NAMES

Constants included from Trek::Formattable

Trek::Formattable::FORMATTERS

Instance Method Summary collapse

Methods included from Trek::Pages::Versionable

#create_current_version_from_page!, #current_content, #current_image, #current_image_url, #current_sections, #current_version, #current_version=

Methods included from Trek::Pages::SearchEngineOptimizable

#default_seo_value, #meta_tags, #seo_values

Methods included from Trek::Pages::Pathable

#full_path, #full_path_from_tree

Methods included from Trek::Fragmentable

#fragments, #fragments_attributes=

Methods included from Trek::Contentable

#content_text, #formatted_content, #parsed_content, #prosemirror_content?

Instance Method Details

#to_sObject



37
38
39
# File 'lib/generators/trek/templates/models/page.rb', line 37

def to_s
  title
end