# Gallery extension 0.6.0 example

**URL:** <https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825>\
**Category:** Radiant CMS\
**Created:** [August 23, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825 "2007-08-23T16:39:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 23, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/1 "2007-08-23T16:39:51Z")

</div>

Hi there. I’ve just release a 0.6.0 version of the gallery extension.  
Many people ask me how to implement a full gallery system, with  
nested gallery (or album of galleries), and final page for an image.  
I implemented some new features and here you can see an example:

[http://gor.bigchieflabs.com/gallery-extension-example/](http://gor.bigchieflabs.com/gallery-extension-example/)

gallery-extension-example is a page of Gallery type.

url like this:

gallery-extension-example/bigchief-toys/original-toy

…call the gallery-extension-example page and specifies to show the  
“original-toy” gallery that is under the “bigchief-toys” gallery.  
Let me know your impressions or suggestion.  
Thank you!

* * *

Andrea F.

removed\_email\_address@domain.invalid  
[http://bigchieflabs.com/blog/](http://bigchieflabs.com/blog/)  
[http://think.bigchief.it](http://think.bigchief.it)

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 23, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/2 "2007-08-23T19:02:15Z")

</div>

Excellent update, Andrea. Glad to see thumbnail cropping is now  
working as well!

Thanks!

\*dan

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 23, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/3 "2007-08-23T19:39:23Z")

</div>

Andrea, on your example page it looks like your thumbnails are  
cropped version of the full image. How did you do this? I can’t find  
a way in the image edit page…

Thanks!

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 23, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/4 "2007-08-23T20:29:36Z")

</div>

Okay, I get it.

If you’re considering a crop, it would be great to use the cropper  
tool to set the thumbnail. 😉

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 24, 2007, 1:27am UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/5 "2007-08-24T01:27:19Z")

</div>

Nice image gallery, the layout is great. When ever I select one image in  
a  
horizontal row, I get the image preselect box extending horizontally  
left  
across the page to the left margin. This looks a bit weird and I will  
send a  
screenshot directly to you, so you can see.

Cheers, Ben.

P.S. Who is The Big Chief?

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 23, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/6 "2007-08-23T20:15:30Z")

</div>

Il giorno 23/ago/07, alle ore 19:37, d n ha scritto:

> Andrea, on your example page it looks like your thumbnails are  
> cropped version of the full image. How did you do this? I can’t find  
> a way in the image edit page…
> 
> Thanks!

The thumbnails are not cropped…thet are the background of a div.  
Their size are a little bigger then the div, and it looks like  
cropping, but it’s not.  
I’m think about a crop tag for the next release…maybe something like:

\<r:gallery:item:crop crop\_width=“100” crop\_height=“100”  
crop\_position=“center” /\>

…but i don’t know 😛

> > Andrea F.  
> > Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)
> 
> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

* * *

Andrea F.

removed\_email\_address@domain.invalid  
[http://bigchieflabs.com/blog/](http://bigchieflabs.com/blog/)  
[http://think.bigchief.it](http://think.bigchief.it)

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 24, 2007, 2:24am UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/7 "2007-08-24T02:24:24Z")

</div>

Andrea, if you use:

-moz-outline: none;

… in the CSS for the link, you can turn off this highlighting.

\*dan

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 24, 2007, 1:57am UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/8 "2007-08-24T01:57:21Z")

</div>

Il giorno 24/ago/07, alle ore 01:26, Ben M. ha scritto:

> Nice image gallery, the layout is great. When ever I select one  
> image in a  
> horizontal row, I get the image preselect box extending  
> horizontally left  
> across the page to the left margin. This looks a bit weird and I  
> will send a  
> screenshot directly to you, so you can see.

Are you talking about the image or the link selection…if you talk  
about ther selection, it’s because I use “text-indent: -9999px” for  
the link of the image…let me know 😛

> Cheers, Ben.
> 
> P.S. Who is The Big Chief?

[http://think.bigchief.it/articles/2007/03/26/missing-bigchief/](http://think.bigchief.it/articles/2007/03/26/missing-bigchief/)

🙂

* * *

Andrea F.

removed\_email\_address@domain.invalid  
[http://bigchieflabs.com/blog/](http://bigchieflabs.com/blog/)  
[http://think.bigchief.it](http://think.bigchief.it)

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 24, 2007, 2:34am UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/9 "2007-08-24T02:34:24Z")

</div>

Il giorno 24/ago/07, alle ore 02:21, d n ha scritto:

> Andrea, if you use:
> 
> -moz-outline: none;
> 
> … in the CSS for the link, you can turn off this highlighting.
> 
> \*dan

Fixed…thank you dan 😉

* * *

Andrea F.

removed\_email\_address@domain.invalid  
[http://bigchieflabs.com/blog/](http://bigchieflabs.com/blog/)  
[http://think.bigchief.it](http://think.bigchief.it)

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 30, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/10 "2007-08-30T19:20:29Z")

</div>

On 8/23/07, Andrea F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://gor.bigchieflabs.com/gallery-extension-example/](http://gor.bigchieflabs.com/gallery-extension-example/)

You wanted to say: [http://gor.bigchieflabs.com/demo](http://gor.bigchieflabs.com/demo)

😉

Great work!

## – Sylvestre Mergulhão - Free Software Development

[http://mergulhao.info](http://mergulhao.info)  
[http://www.euemeu.com](http://www.euemeu.com)

---

<div class="post-metadata">

**Author:** ![gendag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@gendag](https://www.ruby-forum.com/u/gendag)\
**Post date:** [August 30, 2007, 12:22am UTC](https://www.ruby-forum.com/t/gallery-extension-0-6-0-example/112825/11 "2007-08-30T00:22:12Z")

</div>

The gallery extension is superb and thanx for the great work.

But i have one newbie question.

Is it somehow possible to order (descending) and limit the gallery items  
on the index page in a way as itâ€™s possible with: \<r:children:each  
limit=“2” order=“desc”\>

I would like to achive something like this:

\<r:gallery:if\_index\>  
\<r:galleries:each limit=“2” order=“desc”\>  
…  
\</r:galleries:each \>  
\</r:gallery:if\_index\>

* * *

Thx  
David
