Raw output and extra flickr data output
-
Hi,
really nicely built plugin, but I am wondering if there is a way to extend it for some extra custom functions (currently using flickr).What I am trying to do is to use your plugin to generate galleries from flickr, but also to show this information on a map and add a more data-rich features around the galleries. To do this, I would like to be able to access more of the data that is returned from the Flickr API. One way to achieve this would be to do two things:
1. be able to get extra data from Flickr (not currently included in your queries).
2. access more of the data that is returned from the API ideally as a raw array output instead of html, or alternatively some data could be added to the DOM via data attributes.Regarding #1, I am particularly interested in geo information. Flickr obviously can provide this and I can see that you are already passing flickr ‘extras’ and ‘primary_photo_extras’ in the Flickr modules, which can also include ‘geo’ as an option.
Then for #2, either extra data (like geo data) could be included in the DOM (perhaps in html as data-latitude, data-longitude attributes). Alternatively, if it was possible to have either JSON or a PHP array returned from the shortcode (e.g. using output=json or output=raw in the shortcode) then I could call this in separate php which would enable more advanced usage.
Thanks again for a well built plugin!
- The topic ‘Raw output and extra flickr data output’ is closed to new replies.