Announcement

  •  » Engine
  •  » Get Images by Tag

#1 2012-06-24 00:07:37

tip2tail
Member
2012-06-23
5

Get Images by Tag

Hello,

I have just started to integrate my Piwigo installation into the main design of my website by means of a custom theme, based on the "dark" theme.  You can see my efforts at: http://www.hamilton-classics.com/pics_test.php

What I want to do now is be able to reference a group of images from all albums based on the tag of the image from within my main site PHP code.

Let me explain with an example:

On the "Cars" page we list all the members of the club and the cars the own.  If the user were to click to view more about "Mark's Car" that would take them to the page for that car.  In the Piwigo albums any photos of this car are tagged as "mark".  The PHP on the cars page should be able to do something like:

$carImages = $piwigo->getImagesByTag('mark');

This I would see as an array of image details or urls that I could then display as thumbnails on the page, linking of course back to the piwigo image page.

My question is: Is this possible? And if so how??

Thank you,

tip2tail

Offline

 

#2 2012-06-24 00:13:34

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: Get Images by Tag

it's possible with the web API, method "pwg.tags.getImages"
a complete documentation is available at http://yoursite.com/piwigo/tools/ws.htm

I let you try, tell me you need help

Offline

 
  •  » Engine
  •  » Get Images by Tag

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact