Class: BlogPostDrop

Inherits:
Liquid::Simplero::Drop show all
Includes:
CommentableDropConcerns, NotificationSettingProvidingDropConcern, ReactableDropConcerns, ShareableDropConcerns
Defined in:
app/drops/blog_post_drop.rb

Overview

BlogPostDrop represents a blog post. It's available as the top-level blog_post on a blog post page, or as a collection on BlogCategoryDrop.

Instance Method Summary collapse

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#allow_comment_attachments?Boolean

Returns:

  • (Boolean)

#allow_comments?Boolean

Returns:

  • (Boolean)

#assetAssetDrop

Returns:

#bodyString

Returns:

  • (String)

#canonical_urlObject

Returns the non custom URL generated with slug, used internally to link a few actions related to blog posts.

@return [String]

#categoriesArray<BlogCategoryDrop>

Returns:

#categoryBlogCategoryDrop

Returns:

#category_idsArray

Returns:

  • (Array)

#comments_typeObject

Returns allowed type of comments(plain, rich, rich_without_attachments)

@return [String]

#current_category_contextObject

#idInteger

Returns:

  • (Integer)

#meta_dataMetaDataDrop

Returns:

#next_postBlogPostDrop

Returns the first blog post published after this post

Returns:

#notification_settingNotificationSettingDrop

#posterUserDrop

Returns:

#preview_textString

Returns search engine description if it is not blank and user prefered to show it instead body as preview text.. or body

Returns:

  • (String)

#previous_postBlogPostDrop

Returns the first blog post published before this post

Returns:

#published_atDateTime

Returns:

  • (DateTime)

#show_next_prev_posts?Boolean

Returns:

  • (Boolean)

#titleString

Returns:

  • (String)

#total_viewsInteger

Returns:

  • (Integer)

#unique_viewsInteger

Returns:

  • (Integer)

#urlString

Returns:

  • (String)