Formats
Formats allow menus and queries to be customized. They are processed as Liquid Markup (Documentation), allowing for nearly limitless customization. A simple use of formats would be to add CSS attributes to certain elements. Ex: [% if user.is_signed_in %] [[ user.username ]] [% endif %] where the brackets are replaced with curly braces { }.
Creating a new Format:
- Click on "Presentation" in the left navigation
- Under "Modules," select "Formats"
- Once in the Formats interface, click "Create new Format"
- Fill in the required name, and content fields.
- Choose an optional security policy and tags
- Click "Create format" to submit
For example, if you are creating formats for breadcrumbs, the content entered may look something like this:
[% for object in objects %]
[% if forloop.index != 1 %]
[[ object.name]]
[% if forloop.last == false %] ยป [% endif %]
[% endif %]
[% endfor %]
where the brackets are replaced with curly braces { }
Editing an existing Format:
- Click on "Presentation" in the left navigation
- Under "Modules," select "Formats"
- Once in the Formats interface navigate to the format you would like to edit, and click "Edit" under "Actions" on the far right.
- Make any necessary changes to the format When finished making edits, click "Save format"
No attachments
No comments
Sign in | Free trial sign up | Follow eCrowds on Twitter