Revision: 64505
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 15, 2013 07:33 by darith
Initial Code
[ { "Company": "", "Service Group": "", "Location Type": "", "Address Line 1": "", "Address Line 2": "", "City": "", "State": "", "Zip": "", "Division": "", "Country": "", "Latitude": "", "Longitude": "", "Phone": "", "Toll Free": "", "Fax": "", "Contact 1 Name": "", "Contact 1 Title": "", "Contact 1 Email": "", "Contact 1 Phone Number": "", "Contact 2 Name": "", "Contact 2 Title": "", "Contact 2 Email": "", "Contact 2 Phone Number": "", "Contact 3 Name": "", "Contact 3 Title": "", "Contact 3 Email": "", "Contact 3 Phone Number": "" }, {exp:channel:entries channel="locations" status="open" dynamic="no" limit="20" orderby="date" sort="asc" show_future_entries="no" } { "Company": {exp:json_encode}{company}{/exp:json_encode}, "Service Group": {exp:json_encode}{service_group}{/exp:json_encode}, "Location Type": {exp:json_encode}{location_type}{/exp:json_encode}, "Address Line 1": {exp:json_encode}{address_line_1}{/exp:json_encode}, "Address Line 2": {exp:json_encode}{address_line_2}{/exp:json_encode}, "City": {exp:json_encode}{city}{/exp:json_encode}, "State": {exp:json_encode}{state}{/exp:json_encode}, "Zip": {exp:json_encode}{zip}{/exp:json_encode}, "Division": {exp:json_encode}{division}{/exp:json_encode}, "Country": {exp:json_encode}{country}{/exp:json_encode}, "Latitude": {exp:json_encode}{latitude}{/exp:json_encode}, "Longitude": {exp:json_encode}{longitude}{/exp:json_encode}, "Phone": {exp:json_encode}{phone}{/exp:json_encode}, "Toll Free": {exp:json_encode}{toll_free}{/exp:json_encode}, "Fax": {exp:json_encode}{fax}{/exp:json_encode}, "Contact 1 Name": {exp:json_encode}{contact_1_name}{/exp:json_encode}, "Contact 1 Title": {exp:json_encode}{contact_1_title}{/exp:json_encode}, "Contact 1 Email": {exp:json_encode}{contact_1_email}{/exp:json_encode}, "Contact 1 Phone Number": {exp:json_encode}{contact_1_phone_number}{/exp:json_encode}, "Contact 2 Name": {exp:json_encode}{contact_2_name}{/exp:json_encode}, "Contact 2 Title": {exp:json_encode}{contact_2_title}{/exp:json_encode}, "Contact 2 Email": {exp:json_encode}{contact_2_email}{/exp:json_encode}, "Contact 2 Phone Number": {exp:json_encode}{contact_2_phone_number}{/exp:json_encode}, "Contact 3 Name": {exp:json_encode}{contact_3_name}{/exp:json_encode}, "Contact 3 Title": {exp:json_encode}{contact_3_title}{/exp:json_encode}, "Contact 3 Email": {exp:json_encode}{contact_3_email}{/exp:json_encode}, "Contact 3 Phone Number": {exp:json_encode}{contact_3_phone_number}{/exp:json_encode} }{if count<absolute_results}, {/if} {/exp:channel:entries} ]
Initial URL
http://devot-ee.com/add-ons/json-encode
Initial Description
This can load live map JSON data from Expression Engine Database Locations Entry.
Initial Title
Expression Engine JSON (Webpage Template) Code
Initial Tags
json
Initial Language
Other