xcontent
{% xcontent name="footer" %}
This tag is equivalent to the following:
{% xcontent name="footer" xpage="true" %}
Attributes
name
Sets the name to idenfify editable content area because there may be multiple areas on the same page. It is wise not to provide same content name twice on the same page.
only
Set which types of content are allowed for given content area. Multiple types separated with comma may be specified. For example, the following allowes user to add only text blocks and forms into content area:
{% xcontent name="sidebar" only="text,form" %}
Valid content types are:
- text - text block
- gallery - photo gallery
- form - form area
Only these known content types will be recognized (incorrect ones will be ignored). If this argument is omitted or contains only unknown types, all available content types for this user can be added.
Notice that this attribute only affects the add content button. User can still drag any type of content into this content area from some other area.
- 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