image
Generates HTML IMG tag for given image path. Site root prefix will be added automatically. Additional attributes may be supplied.
{% image 'images/image_path.png' %} #=> <img src="/site_root/images/image_path.png" />
Attributes
All additional attributes after image path will copied onto IMG tag attributes:
{% image 'image_path.png' alt="Image" foo="Bar" %} #=> <img src="/site_root/image_path.png" alt="Image" foo="Bar" />
- 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