- Get link
- Other Apps
view.archive. rangeMessage
Message describing the current archive view's date range.
Note that this is only present if the current view is an archive feed, i.e. view.isArchive is true.
This message is a localized value of the current archive, e.g. "Showing posts from April, 2016".
Note that this is only present if the current view is an archive feed, i.e. view.isArchive is true.
This message is a localized value of the current archive, e.g. "Showing posts from April, 2016".
view.archive. rangeMessage is a member of the view dictionary.
rangeMessage has data type string
Strings are quote-wrapped sequences of characters.Metadata
Metadata are implicit properties belonging to a data type. If your data has the name 'foo', you reference it with 'data:foo'. If the metadata is 'bar', you can reference the value of foo's metadata bar with 'data:foo.bar'.length: Provides the number of characters in the string.
size: Same as length.
escaped: Provides the HTML escaped equivalent of the string. This is useful when the string may represent user input, to avoid HTML injection attacks
jsEscaped: Provides the JS escaped equivalent of the string. This is useful when the string may represent user input, to avoid JS errors.
jsonEscaped: Provides the JSON escaped equivalent of the string. This is useful when the string may represent user input, to avoid JSON errors.
cssEscaped: Provides the CSS escaped equivalent of the string.
Operators
string1 ==
string2
(Also supported with the syntax eq
)
Returns true if the first string is equal to the second (case-sensitive).
string1 contains
string2
(Also supported with the syntax in
)
Returns true if the first string contains the second (case-sensitive).
snippet(string, options)
Produces a short snippet from an HTML string.options: Object specifying the snippeting options, which are:
- links: boolean for whether to preserve anchors/links in the snippet. Defaults to true.
- linebreaks: boolean for whether to preserve linebreaks (
) in the snippet. Defaults to true.
tags - ellipsis: boolean for whether to append an ellipsis (…) to the end of the snippet. Defaults to true.
- length: Number specifying the maximum length of the snippet.
<b:eval expr='snippet(data:post.body, { length: 150, links: false, linebreaks: false })' />
View all "view[Object] fields