EntryDrop
EntryDrop is a Liquid drop representing an entry. Each entry available in the templates will be encapsulated in an EntryDrop.
Methods
EntryDrop supports the following methods:
- id
- Returns the ID of the entry as a string.
- slug
- Returns the slug of the entry.
- title
- Returns the title of the entry, html escaped.
- date
- Returns the date the entry was published, wrapped in an hAtom compatible microformat (according to the Microformat datetime-design-pattern).
- For example: <abbr title="2007-12-31T13:02:03Z">December 31, 2007 at 13:02</abbr>
- If you want to remove the dotted underline or small caps displayed in some browsers by default (Firefox, Opera, Konqueror…), use the CSS style rules border-bottom: none; font-variant: normal; letter-spacing: normal; on this <abbr>.
- get_date
- Returns the date the entry was published.
- author
- Returns the nickname of the author of the entry, html escaped.
- get_author
- Returns a UserDrop for the author of this entry.
- type
- Returns the type of the entry, html escaped.
- state
- Returns the state of the entry, as a single character value.
- permalink
- Returns the permalink of the entry.
- comments_url
- Returns the URL at which the comments are displayed. This is the permalink + "#comments".
- respond_url
- Returns the URL at which someone can post comments. This is the permalink + "#respond".
- trackback_url
- Returns the trackback URL of the entry.
- comment_post_url
- Returns the comment post URL of the entry (for the repond form).
- description
- Returns the description of the entry. It's automatically formatted for display on an HTML-page.
- contents
- Returns the contents of the entry. It's automatically formatted for display on an HTML-page.
- tags
- Returns the tags of the entry in an array, false if this entry doesn't have any tags.
- comment_count
- Returns the comment count of an entry, wrapped in a nice sentence with a link to the comments on the entry page.
- Examples:
- comment_count = 0 => No comments. <a href="entry_url#respond">Leave a comment.</a>
- comment_count = 1 => <a href="entry_url#comments">One comment.</a>
- comment_count = 5 => <a href="entry_url#comments">Five comments.</a>
- comment_count = 11 => <a href="entry_url#comments">11 comments.</a>
- get_comment_count
- Returns the comment count of an entry, as an integer.
- url_for_type_stylesheet
- Returns the URL of the stylesheet for the type of this entry. From v0.6.2, this function returns false when that file doesn't exist.
- For example, if this entry's type is article, it will return something like http://www.example.com/blog/stylesheets/type_article.css.
page_revision: 5, last_edited: 1191079337|%e %b %Y, %H:%M %Z (%O ago)





