blog
articles
Returns list of all articles in this blog. Each list item is an article object.
latest_articles
Returns 10 latest blog articles. Use latest_n_articles accessor to get appropriate number of articles. Articles are ordered by create date, newer articles first.
latest_n_articles
Returns requested number of latest articles. Replace n with desirable number. Articles are ordered by create date, newer articles first.{% for article in blog.latest_15_articles %} {{ article.title }}<br/> {% endfor %}
page
Reference to the page object the blog is on.
rss_link
Generates LINK tag for RSS-feed. Use inside HEAD tag
{{ blog.rss_link }} #=> <link rel="alternate" type="application/rss+xml" title="RSS" href="url/to/blog.rss">
rss_url
Generates url to RSS feed without generating a LINK tag:
<a href="{{ blog.rss_url }}">Subscribe to our blog</a> #=> <a href="url/to/blog.rss">Subscribe to our blog</a>
- Basics
- Variables
- Filters
- Components
- Localization
- Keyboard shortcuts
- Objects
- Article
- Asset
- Blog
- Comment
- Element
- Language
- Mediaset
- Menu item
- Page
- Person
- Site
- Tag
- Data
- Tags
- addbutton
- assign
- blogcontext
- case
- capture
- commentform
- content
- contentblock
- cycle
- editable
- elementscontext
- for
- grouped
- if
- ifchanged
- image
- include
- load
- login
- loginblock
- menuadd
- menubtn
- menulink
- reorder
- rss_link
- stylesheet_link
- unless
- xcontent
- Examples
- Creating a navigation menu
- Creating language selection
- Blog page example
- Blog article example
- Complete page example
- Breadcrumbs
- Standard theme definition
- Elements listing
- Element page
- Components