Articles API


Display mode: list

Show

before_show, after_show

There are no tags available for these two shows but they can be used to set titles or open and close ul's.

show

Here are the tags available to show in article list:

TagDescription
__title__ outputs the sermon title
__slug__ the URL safe version of the title (more info)
__titlelink__ creates a link with the title as the text
__url__ looks like "/article/slug"
__text__  
__summary__  
__preview__
A shortened version of the text. HTML is stripped. Defaults to be no more than 250 characters. Can be specified with __perview limit='120'__ Uses the description if no summary is available.
__group__ comma separated list of group names
__series__ the title of the series for the article
__serieslink__ a link to the series, anchor is "/series/series-slug/" with the series title as the text
__seriesurl__ looks like "/series/series-slug/"
__seriesslug__ the slug of the series
__category__ title of the category
__categoryslug__  
__categoryselect__  
__categoryselectslug__  
__date__ formattable date/time. Use __date format='j/m/Y'__ a complete list of tags is available
__author__ the author(s) of the article
__authorslug__  
__audio__ the url of the audio
__audioplayer__ creates a link to the popup audio player (more info)
__notes__ url to the notes
__imageurl__ the url to the image
__imagefilename__ the filename of the image
__videoplayer__ creates a link to the popup video player. Handles optional attributes: __videoplayer linktext='Watch This' width='480' height='400' __ (more info)
__video__ url to the article's video
__id__ system id of the article
__alt__ returns 'alt' for every other line
__ commentNumber __ number of comments for that event. I.E. Comments(3)

Parameters

features

Only show items published as featured.

Example:

"features",
Monklet Example:

features="features"

nonfeatures

Only show items not published as featured.

Example:

"nonfeatures",

Monklet Example:nonfeatures="nonfeatures"

howmany

Sets the maximum number of items to display

Example:

"howmany:3",

offset

Skips the first X records returned

Example:

"offset:1",

find_group

Only show items assigned to that group. Can find multiple groups with a comma separated list.

Example:

"find_group:group1,group2,group3",

find_series

Only show items assigned to that series. Can find multiple series with a comma separated list. Can return the "current" series with "find_series:current",

Example:

"find_series:series1,series2,series3",

find_category

Only show items assigned to that category. Can find multiple categories with a comma separated list.

Example:

"find_category:category1,category2,category3",

hide_category

will not show items assigned to that category.

Example:

"hide_category:category-slug,category-slug2",

find_author

Only show items assigned to that author.

Example:

"find_author:author-slug",

find_month

Only show items from that month.

Example:

"find_month:2007-11",

find_tag

Finds all posts with that tag.

Example:

"find_tag:tag-slug",

 

order

Sets sort order of items in list

itemdescription
recent by date, starting with most recent
series by series name, alphabetically
random returns a random list
title by title, in alphabetical order
groupby

Sets a criteria to group the list by.

Available grouping criteria:

  • series
  • category
  • author
  • month

Example:

"groupby:series",  

nocache

Prevents the output from being cached. Caching increases the speed of getContents considerably so this tag is not reccomended except for testing purposes, places where the output is random, events lists where the output is time sensitive, or context sensitve getContents. nocache does not apply to monklets.

example:

"nocache",

noecho

getConents default to 'print' the output. With noecho, you can assign the contents to a variable to be printed later. This is helpful if you have repeated content on a page.

example:

"noecho",

 

 

Display mode: detail

Show

show

Here are the tags available to show in article detail:

TagDescription
__title__ outputs the sermon title
__slug__ the URL safe version of the title (more info)
__titlelink__ creates a link with the title as the text
__url__ looks like "/article/slug"
__text__  
__summary__  
__group__ comma separated list of group names
__series__ the title of the series for the article
__serieslink__ a link to the series, anchor is "/series/series-slug/" with the series title as the text
__seriesurl__ looks like "/series/series-slug/"
__seriesslug__ the slug of the series
__category__ title of the category
__categoryslug__  
__categoryselect__  
__categoryselectslug__  
__date__ formattable date/time. Use __date format='j/m/Y'__ a complete list of tags is available
__author__ the author(s) of the article
__authorslug__  
__audio__ the url of the audio
__audioplayer__ creates a link to the popup audio player (more info)
__notes__ url to the notes
__image__ the image in an img tag
__imageurl__ the url to the image
__imagefilename__ the filename of the image
__videoplayer__ creates a link to the popup video player. Handles optional attributes: __videoplayer linktext='Watch This' width='480' height='400' __ (more info)
__video__ url to the article's video
__id__ system id of the article
__alt__ returns 'alt' for every other line
__ commentNumber __ number of comments for that event. I.E. Comments(3)
__ commentList __ preformatted list of comments for that article with text box for additional comments

Parameters

find

Will accept the slug of an article.

Example:

"find:article-slug",

Display mode: cloud

Parameters

tagmin

Only for display:cloud. Will only display tags that have been used X amount of times.

Example:

"tagmin:3",