Ranking Orders
- Order by Content Title (alphabetically) (default)
- Order by Content Title (reverse alphabetically)
- Order by Content Creation Date (newest to oldest)
- Order by Content Creation Date (oldest to newest)
- Order by Content Updated Date (newest to oldest)
- Order by Content Updated Date (oldest to newest)
- Order by Content Author Username (alphabetically)
- Order by Content Author Username (reverse alphabetically)
- Order by Content Size (bytes) (highest to lowest)
- Order by Content Size (bytes) (lowest to highest)
- Order by Content Word Count (highest to lowest)
- Order by Content Word Count (lowest to highest)
- Order Randomly
- Order by Content Category (this is a special order - only 1 entry for each category found will be returned)
Additional Supported Parameters
In addition to the Common Function Parameters defined in the Jamroom Ranking System Guide, the "content" mode also supports the following additional parameters:
PARAMETER |
TYPE |
DEFAULT |
DESCRIPTION |
content_id |
number |
n/a |
The "content_id" parameter can be passed in so that only the given content_id entry will be shown. |
category |
string |
n/a |
The "category" parameter will make it so only Content entries that are within the given category will be shown. |
user_id |
number |
n/a |
The "user_id" parameter will make it so only Content entries that were written by the given user_id will be shown. |
author |
string |
n/a |
The "author" parameter allows you to make it so only Content entries that were written by the given author (user_nickname) will be shown. |
Available search_area values
SEARCH_AREA |
DESCRIPTION |
content_title |
"content_title" will search the Content Title (content_title database column). |
content_category |
"content_category" will search the Content Category (content_category database column). |
content_body |
"content_body" will search the main Content Body (content_body database column). |
content_all_fields |
content_all_fields will search the content_title, content_category and content_body areas. |
content_???? |
Any Content Custom Form fields are also searchable - consult the Custom Form Fields section of your Jamroom Config for details on the search_area name to use. |
Template Variables for use in the row_template
VARIABLE |
DESCRIPTION |
{$CONTENT_RANK} |
The numerical position on the output result set (starting at 1). |
{$CONTENT_ID} |
Jamroom Content ID for the entry |
{$CONTENT_TITLE} |
The title of the Content Entry |
{$CONTENT_BODY} |
The "body" (main content) of the Content entry. |
{$CONTENT_CREATED} |
The 11 digit epoch time the Content Entry was created. |
{$CONTENT_UPDATED} |
The 11 digit epoch time the Content was last updated. |
{$CONTENT_NAME} |
The Content "name" that can be used via the index.php script to show the content (i.e. the URL name) |
{$CONTENT_CATEGORY} |
The Category the Content entry belongs to. |
{$CONTENT_SIZE} |
The size (in bytes) of the Content Body. |
{$CONTENT_WORDS} |
The number of words in the Content Body. |
{$CONTENT_PUBLISH_DATE} |
The 11 digit epoch time of the date the Content was scheduled for publishing. Will be empty or set to 0 (zero) if no publication date was entered when it was created or updated. |
{$CONTENT_REMOVAL_DATE} |
The 11 digit epoch time of the date the Content was scheduled for removal (i.e. no longer be shown). Will be empty or set to 0 (zero) if no removal date was entered when it was created or updated. |
{$USER_ID} |
Jamroom User ID of Content entry author. |
{$USER_NICKNAME} |
Login name of Content entry author. |
{$USER_EMAILADR} |
Email Address of Content entry author. |
{$USER_SHOW_EMAIL} |
Will be set to "0" of the User has chosen to NOT show their email address via the setting the in their Profile. |
{$USER_FULLNAME} |
"Full Name" for Content entry author as entered in their Profile |
{$USER_CREATED} |
11 digit Epoch time the Content entry author's User Account was created. |
{$USER_UPDATED} |
11 digit Epoch time the Conetnt entry author's User Account was last updated. |
{$USER_LASTLOGIN} |
11 digit Epoch time the Content entry author last logged in. |
|