exp:eeflickr:photos_getContext

Returns next and previous photos for a photo in a photostream.

Params

  • photo_id: ( required ) the ID of the Photo
  • sign: "yes" set to yes if you are requesting your (private,friends,family) data if this is not set only public data is returned for this tag. (about Authentication)
  • refresh: (cache time in minutes) this overrides the default time eeFlickr stores Flickr API data before requesting new data from Flickr

Full Tag

{exp:eeflickr:photos_getContext photo_id="2041092363"}
    {prevphoto_id}
    {prevphoto_secret}
    {prevphoto_server}
    {prevphoto_farm}
    {prevphoto_title}
    {prevphoto_url}
    {prevphoto_thumb}
    {nextphoto_id}
    {nextphoto_secret}
    {nextphoto_server}
    {nextphoto_farm}
    {nextphoto_title}
    {nextphoto_url}
    {nextphoto_thumb}
{
/exp:eeflickr:photos_getContext} 

 


Sample Usage

     

{exp:eeflickr:photos_getContext photo_id="80148361"}
            
<div class="context"previous 
                {if prevphoto_thumb}
                    
<a href="/picture/{prevphoto_id}/" title="{prevphoto_title}"><img src="{prevphoto_thumb}"  alt="{prevphoto_title}"/></a>
                
{if:else}
                    
<img src="http://l.yimg.com/www.flickr.com/images/en-us/placeholder_first_photo.gif"  alt=""/>
                
{/if}
            
</div>
            <
div class="context"next 
                {if nextphoto_thumb}
                    
<a href="/picture/{nextphoto_id}/" title="{nextphoto_title}"><img src="{nextphoto_thumb}"  alt="{nextphoto_title}"/></a>
                
{if:else}
                    
<img src="http://l.yimg.com/www.flickr.com/images/en-us/placeholder_last_photo.gif"  alt=""/>
                
{/if}
            
</div>
            
{/exp:eeflickr:photos_getContext} 

     



Sample Will Output

previous Orange St. Fairhope
next