Formats

Rating-star-off Rating-star-off Rating-star-off Rating-star-off Rating-star-off (0 ratings)

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:

  1. Click on "Presentation" in the left navigation
  2. Under "Modules," select "Formats"
  3. Once in the Formats interface, click "Create new Format"
  4. Fill in the required name, and content fields.
  5. 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 { }
  6. Choose an optional security policy and tags
  7. Click "Create format" to submit

Editing an existing Format:

  1. Click on "Presentation" in the left navigation
  2. Under "Modules," select "Formats"
  3. Once in the Formats interface navigate to the format you would like to edit, and click "Edit" under "Actions" on the far right.
  4. 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

Bookmark and Share