Grid Lite documentation

TagsΒΆ

Primary Tag Pair

<ul>
{release}
  <h2>Version {version}</h2>
<p>	Release Date: {date}<br />
	{notes}<br />
{/release}</p>
</ul>

Tag Parameters

{release limit="" offset="" sort ="" backspace="" row_id=""}
...
{/release}

limit

This parameter limits the number of rows on any given page.

offset

This parameter offsets the display by X number of rows. For example, if you want to show all rows except the three latest ones, you would do this

offset="3"

sort

sort="asc"
code]sort=“desc”

The sort order can be ascending or descending. The order will default to “descending” if nothing is specified.

sort="random"

backspace

Backspacing removes characters (including spaces and line breaks) from the last iteration of the loop.

row_id

row_id="3"

You can hard code the grid field to show a specific rows.
You may also specify multiple rows by separating them with the pipe character:

row_id="3|4"

Or use “not” to exclude rows:

row_id="not 3|5"

Single Variables

absolute_count

The absolute “count” out of the current rows being displayed by the tag, including offset rows.

row_id

The “count” out of the current rows being displayed. If five rows are being displayed, then for the fourth row the {row_id} variable would have a value of “4”.

total_rows

Total rows

:total_rows

The total number of rows for a particular field

{if '{images:total_rows}' > 0} 
...
{/if}