Entries tag
{exp:low_reorder:entries set="1" disable="member_data|category_fields"}
{if count == 1}<ol>{/if}
<li>{title}</li>
{if count == total_results}</ol>{/if}
{/exp:low_reorder:entries}
The Entries tag supports all channel:entries parameters and variables. Any
filters
will be overridden by the given parameters, unless you set force_set_params to yes.
The dynamic parameter is automatically set to no, if not explicitly set to
yes.
Parameters for the Entries tag pair
| Parameter |
Description |
set |
The ID of the Low Reorder Set. This is a required field. |
force_set_params |
Set to yes if you want to override tag parameters with the Set’s filter settings. |
reverse_count |
Set to customize the name of the reverse_count variable. |
Extra variables for the Entries tag pairs
| Variable |
Description |
{reverse_count} |
Like {count}, but reversed: from {total_results} to 1. |
Next entry tag
{exp:low_reorder:next_entry set="1" url_title="{segment_2}"}
Next: <a href="{path="services/{url_title}"}">{title}</a>
{if no_results}This is the last page{/if}
{/exp:low_reorder:next_entry}
Displays the next entry in the set based on given entry_id or url_title.
Works like its Channel module
relative.
Parameters for Next entry tag pair
| Parameter |
Description |
set |
The ID of the Low Reorder Set. This is a required field. |
entry_id |
Entry id of the current entry. If not defined, you must define the url_title. |
url_title |
Url title of the current entry. If not defined, you must define the entry_id. |
category |
Category id of the current entry. Use in combination with ordered entries that are put in a single category. |
loop |
If set to yes, the entry lookup will work in a loop, returning the first one when viewing the last and vice versa. |
prefix |
If defined, tag variables will be prefixed with given prefix. Useful for nesting inside the other tags. |
no_results |
If defined, the tag will return its value when there’s no previous or next entry. This value will override the {if no_results} conditional. |
Variables inside Next and Previous entry tag pairs
| Variable |
Description |
{entry_id} |
Entry id of the next/previous entry. |
{url_title} |
Url title of the next/previous entry. |
{title} |
Title of the next/previous entry. |
{page_uri} |
The Pages URI next/previous entry. |
{page_url} |
The Pages URL next/previous entry. |
Previous entry tag
{exp:low_reorder:prev_entry set="1" url_title="{segment_2}"}
Previous: <a href="{path="services/{url_title}"}">{title}</a>
{if no_results}This is the first page{/if}
{/exp:low_reorder:prev_entry}
Displays the previous entry in the set based on given entry_id or url_title.
Works like its Channel module
relative. See Next entry tag for available parameters and variables.
Entry IDs tag
{exp:low_reorder:entry_ids set="1" separator=","}
{exp:low_reorder:entry_ids set="1"}
{low_reorder:entry_ids}
{/exp:low_reorder:entry_ids}
The Entry IDs tag will return a pipe-separated list of ordered entry IDs in the given set.
You can use both the single tag syntax as the tag pair syntax. If you’re using it as a tag
pair, use the variable {low_reorder:entry_ids} to output the entry IDs.
Parameters for Entry IDs tag
| Parameter |
Description |
set |
The ID of the Low Reorder Set. This is a required field. |
category |
Category id of the Low Reorder Set. Use in combination with ordered entries that are put in a single category. |
separator |
The character used to separate the entry IDs. Defaults to | |
no_results |
If defined, the tag will return its value when there are no matching entry IDs. This value will override the {if no_results} conditional. |
Pad tag
{exp:low_reorder:pad input="{count}" size="3"}
Use this tag to add padding to the value in the input value, like the
str_pad() function in PHP.
Parameters for Pad entry tag
| Parameter |
Description |
input |
The input string to apply the padding to. |
length |
Total length of the padded input. This is a required parameter. |
string |
Characters to use for the padding. Defaults to 0. |
type |
Either left or right. Defaults to left. |