Last X images from an album
bvossey
Joined: 2007-08-19
Posts: 17 |
![]() |
Hi everybody, I just want to have the last X added images from an specified album. (where X is a number) I checked the imageblock doc but imageblock is only for the whole gallery with recent|recent... There is no alternative to parse all the item and then sort it with a home function ? Thanks for your help ! Benjamin |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
you can use the imageblock module for this just specify the g2_itemId of the album you want. Dave |
|
bvossey
Joined: 2007-08-19
Posts: 17 |
![]() |
Thanks floridave. Indeed, i think the doc isn't very clear on this point but right, it's work ... but for the link on the images, I have the link to gallery element and I want to have the link to the real image (ie. jpg files). I checked the doc of getImageBlock and there is one parameter 'href' but I don't think I can do what I want ... Output for one element : Quote:
<div class="one-image"> Here is my code to have the last 3 images of an album: Quote:
<?php |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
i think the doc isn't very clear on this point but right, it's work Docs are written by the user for the user so feel free to make it more clear. Quote:
I want to have the link to the real image (ie. jpg files) The imageblock module does not have this switch. I think the 'href' parameter is for a custom link to what ever you like. I have never played with that so don't really know. Dave _____________________________________________ |
|
bvossey
Joined: 2007-08-19
Posts: 17 |
![]() |
How can i edit the API doc ? I did'nt find the 'edit' button. Maybe i can have the path to the real image by another way than imageblock. Thanks for your help |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
bvossey wrote:
How can i edit the API doc ? Sorry I did not mean the API documentation I was thinking of the codex: Dave _____________________________________________ |
|