How can I get the Album's ID or absolute path to pictures?

waspper

Joined: 2012-07-05
Posts: 7
Posted: Tue, 2012-07-10 20:36

Hi guys...

Some days ago, I asked about how to embed galleries (see http://gallery.menalto.com/node/107336. Thank you suprsidr for your great help :D ). Now, I'm interested to develop a very basic module that let users "Copy and paste" a few lines of code to easy sharing that galleries.

I'm not "Gallery expert". I'm trying to learn it :D ... For this purpose, I would like to know how can I get the album's ID or related, where I can to take pictures for gallery that is being displayed. For example:

* I've created a gallery called "First of all".

* When I see this album, I would like to display at bottom of it a single <div> containing the code. But, I need the absolute path to the album to get pictures, like this: http://mysite.com/galleries/first-of-all/photos/picture-01.jpg.

* I attach a snapshot to explain better my purpose: https://lh5.googleusercontent.com/-i1nvVfKE7o8/T_yRdIn0rHI/AAAAAAAAA7s/vcekVRQnq1A/w883-h551-k/gallery_question_1.png

If I finish this module, It will be released in Gallery Contributed Modules, jeje jeje

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25968
Posted: Wed, 2012-07-11 02:42

This module:
http://codex.gallery2.org/Gallery3:Modules:embedlinks
Should be very close to what you are after.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
waspper

Joined: 2012-07-05
Posts: 7
Posted: Wed, 2012-07-11 19:21

Ok, thakyou :)

Login or register to post comments