<a href="{@FlickrPageURL}" alt="{@Title} by {@OwnerName} on {@DateTaken}" rel="shadowbox" target="_blank"> <img src="{@Thumbnail}" title="{@Title} by {@OwnerName} on {@DateTaken}" /> </a>
Since flickr doesn't let you embed it in an iFrame, I am having some minor problems. Instead of using {@FlickrPageURL} for the href attribute, is there something else I can use to get the location of the photo (/something.jpg) based on the size assigned to flickrSizeMSTB?
That is exactly what I am trying to do. I replaced @FlickrPageURL with @imagefile after referencing the result XML but it isn't coming back with any data - I have a blank href. Here is my current code:
<xsl:for-each select="$setPhotos/Photo"> <xsl:sort select="ds:Random($maxItems)" order="descending" /> <xsl:if test="position() <= $maxItems"> <a href="{@imagefile}" alt="{@Title} by {@OwnerName} on {@DateTaken}" rel="shadowbox" target="_blank"> <img src="{@Thumbnail}" title="{@Title} by {@OwnerName} on {@DateTaken}" /> </a> </xsl:if> </xsl:for-each>
$setID is just getting data passed into the Macro via a parameter and I have some brief code to take 9 random images out of the 20 it gets and display them.
Photo URL instead of @FlickrPageURL
Currently, I have:
Since flickr doesn't let you embed it in an iFrame, I am having some minor problems. Instead of using {@FlickrPageURL} for the href attribute, is there something else I can use to get the location of the photo (/something.jpg) based on the size assigned to flickrSizeMSTB?
Thanks,
Donald
I'm not totally sure what you're trying to do. Are you trying to have a thumbnail expand into a lightboxed full size image?
Assuming that's the case,
I'm thinking you will want to use the "imagefile" attribute instead of "FlickrPageURL"
The FlickrPageURL is the link to the photo page on Flickr.
<photo title="Fascinating Nature - First Double Rainbow 2010" imagefile="http://farm3.static.flickr.com/2710/4466953793_cd0430ba59.jpg" thumbnail="http://farm3.static.flickr.com/2710/4466953793_cd0430ba59_t.jpg" flickrpageurl="http://www.flickr.com/photos/21207178@N07/4466953793" ownername="Batikart" latitude="48.798242" longitude="9.280571" datetaken="2010/03/27" tags="" views="-1"></photo>
Of course, I could be totally missing what you're trying to do.
That is exactly what I am trying to do. I replaced @FlickrPageURL with @imagefile after referencing the result XML but it isn't coming back with any data - I have a blank href. Here is my current code:
$setID is just getting data passed into the Macro via a parameter and I have some brief code to take 9 random images out of the 20 it gets and display them.
Thanks,
Donald
I'll test it and check it out. I may not get back to you until Friday.
I found out what the problem was. Instead of using @imagefile, you have to use @ImageFile (case-sensitive).
--
Donald
I found out what the problem was. Instead of using @imagefile, you have to use @ImageFile (case-sensitive).
--
Donald
Ah yes. I've stopped using case sensitive attributes in new projects because of this.
Sorry about that.
is working on a reply...