Picasa

Config

PicasaConfig.png
  • Username and Password: use the credentials that you would normally use to get into Picasa your account.
  • Provider: Select the Picasa provider
  • Cache Duration: Enter the duration in seconds to cache pickers response

Picker

PicasaPicker.png

Remember that it is possible to pick items from private albums as well, and you will expose those pictures to the world.

Create

Not implemented yet.

XSLT Extensions

GetMedia

Parameters

  • docTypeDefinitionId (int): The Doc Type Definition ID for the Picker Data Type.
  • id (int): The ID of the Picasa item to retreive.

Example usage to get a medium thumbnail:

<xsl:variable name="field" select="/macro/field" />
<xsl:variable name="item" select="picasa:GetMedia(
   $currentPage/*[not(isDoc) and local-name() = $field]/value/@dataTypeId
  ,$currentPage/*[not(isDoc) and local-name() = $field]/value
 )" />
<img src="{$item/ThumbMedium}" alt="Medium thumbnail" />

Response

<File>
  <Url>http://lh6.ggpht.com/__X7mXKv73sA/TOQPRWYQWJI/AAAAAAAAABE/QOuT2lYozOM/IMG_2436.JPG</Url>
  <Height>1200</Height>
  <Width>1600</Width>
  <Created>15-4-2010 0:00:00</Created>
  <ThumbSmall>http://lh6.ggpht.com/__X7mXKv73sA/TOQPRWYQWJI/AAAAAAAAABE/QOuT2lYozOM/s72/IMG_2436.JPG</ThumbSmall>
  <ThumbMedium>http://lh6.ggpht.com/__X7mXKv73sA/TOQPRWYQWJI/AAAAAAAAABE/QOuT2lYozOM/s144/IMG_2436.JPG</ThumbMedium>
  <ThumbLarge>http://lh6.ggpht.com/__X7mXKv73sA/TOQPRWYQWJI/AAAAAAAAABE/QOuT2lYozOM/s288/IMG_2436.JPG</ThumbLarge>
</File>

Last edited Dec 6, 2010 at 7:23 PM by sebastiaan, version 8

Comments

rtaranto Apr 30, 2012 at 10:15 PM 
Hi Sebastiaan,

I've been working in a website with UMP and your picasa interface.

I was wondering if, in addition to the attributes presented, I could get photo subtitle.

It would be also very helpfull if there's a way to get selected photo album, so I could import the entire album and not only a single photo.

thanks in advance!