New Custom Fields

Posted on Jan 12th, 12 by Matt McCloskey. 0 Comments. Tags: new-features api .

We just added two new custom field types that are very cool: Geocode & Youtube.

Geocode

The Geocode custom field lets you search for and save the latitude and longitude values for an address. This is great when using Osmek to populate points on a Google map. Just starting typing in the field and a google map will pop up showing matching results. Click on a point to choose that location.

In your templates, use address, lat, or lng as the keyword after the custom field name to retrieve those particular values. So for a custom field called "location" you could use the keywords [location address], [location lat], or [location lng]

YouTube

The YouTube cusotm field lets you paste a youtube url, and retrieve info about throug our API, like it's title, description & thumbnail from youtube, or a video embed code.

Available action keywords for a youtube custom field are title, description, thumb, or embed. Pass a width or width + x + height after the keyword for embed and thumb to change the size!

More about templates and keywords here: http://osmek.com/user_guide/api/templates

 

Leave a Comment