Churches API

Last edited: 10/30/2014

Display mode: list

Show

show_before

Here are the tags available to show_before in the church list:

TagDescription
__records__ The number of records returned
__searchterm__ If search parameter was used, the term is returned
__googlemap__ See the church howto for more info on this
show

Here are the tags available to show in church list:

TagDescription
__name__ Outputs the church title
__slug__ The URL safe version of the title (more info)
__website__ The website entered for the church
__email__
__phone__  
__description__
__imageurl__
__postal__
__address__
__street__
__street2__
__city__
__state__
__stateAB__  
__zip__
__country__
__longitude__ The longitude of the location
__latitude__ The latitude of the location
__pastor__
__denomination__
__service1__
__service2__  
__service3__
__service4__
__service5__
__service6__
__googlemap__ See the church howto for more info on this
__count__ The number the current record is in the list
__group__ The names of groups assigned to the church
Any Custom Fields setup for Churches will output their API tags
group_show
TagDescription
__title__ the title of whatever we are grouping by
__slug__  

Parameters

find_group

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

Example:

"find_group:group-slug1,group-slug2,group-slug3",

find_pastor

Finds churches whose pastor's name matches search terms. Does not need to be exact, the search "James" would find a church with pastor "James Pastorguy".

Example:

"find_pastor:Some Guy",

search_church

Finds a list of churches whose name or description contains the search term.

Example:

"search_church:search term",

search_name

Will only search the church's name field. Can optionally be combined with search_description

Example:

"search_name:baptist",

search_description

Will only search the church's description field. Can optionally be combined with search_name.

Example:

"search_description:something",

search_location

Finds a list of churches in a given zip code or country,state,city string. If city can't be found, a list of churches in the specified state are returned.

Example:

"search_location:98765",

Example:

"search_location:US|WA|Seattle",

radius

To be used with search_location. Sets the number of miles to search from the center of the specified city or zip code.

Example:

"radius:50",

search_state

Find a list of churches in a given state. Accepts either the full name of the state or an abbreviation.

Example:

"search_state:WA",

groupby

Sets a criteria to group the list by. Grouping by website will only return churches which have entered a web site.

Available grouping criteria:

  • group
  • state
  • website

Example:

"groupby:state",

 

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",

emailencode 

 By default email addresses in content areas are encoded with javascript. emailencode can disable this for all content areas in a getContent.

example:

"emailencode:no",

 

Display mode: detail

Show

show

Here are the tags available to show in church list:

TagDescription
__name__ Outputs the church title
__slug__ The URL safe version of the title (more info)
__website__ The website entered for the church
__email__
__phone__  
__description__
__imageurl__
__worship__ The style of worship entered
__attendance__
__postal__
__address__
__street__
__city__
__state__
__stateAB__  
__zip__
__country__
__longitude__ The longitude of the location
__latitude__ The latitude of the location
__pastor__
__denomination__
__service1__
__service2__  
__service3__
__service4__
__service5__
__service6__
__googlemap__ See the church howto for more info on this
__count__ The number the current record is in the list
__group__ The names of groups assigned to the church
Any Custom Fields setup for Blogs will output their API tags

Parameters

find

Will accept the slug of a church.

Example:

"find:church-slug",