blogcontext
Executes block template in context of blog given. Blog will be identified by it's path in site structure.
{% blogcontext "my_blog" %}{{ blog.rss_url }}{% endblogcontext %}
=> /my_blog.rss
If you use this block on blog layout or blog article layout, using blog variable outside of this block will act as
normal blog associated with this page
{% blogcontext "another_blog" %}{{ blog.rss_url }}{% endblogcontext %} - {{ blog.rss_url }}
=> /another_blog.rss - /current_blog.rss
If blog is not found from given address or page with this address is not a blog page, it will not evaluate block.
- 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