Ascribe

The Project Template

This template determines how each individual project looks. You can customize how the project photos are displayed, move the description around, or highlight a specific project detail.

When you are working with the project layout, the following variables are available:

current_project_group
Returns the project group (if any) that was used to access this project. The project group is represented by a project_group variable.
project
A project variable representing the current project.
company
Returns a company variable for your company.

Additionally, within the project template, there is a special liquid tag available.

project_marks
Returns a collection of all the marks on a project, pulling in the relevant javascript and css to display the marks. Within the tag, the display_mark variable outputs each individual mark.
For example:
<ul>
  {% project_marks %}
  <li>{{ display_mark }}</li>
  {% endproject_marks %}
</ul>
will display an unordered list wherein each list item wraps the mark.
custom_fields_online and custom_fields_pdf
Returns a collection of all the custom fields on a project that have a value. Use custom_fields_online for the online showcase templates and custom_fields_pdf for the PDF templates. If a the custom field title does not have a value for a particular project, it will not be included so you will not have field title with blank values.
For example:
<ul>
  {% if project.custom_fields_online %}
    {% for custom_field in project.custom_fields_online %}
      <'li>{{ custom_field[0] }}: {{ custom_field[1] }}</li>
    {% endfor %}
  {% endif %}
</ul>
will display an unordered list wherein each list item wraps the custom field with its value.