# Flickr behavior

**URL:** <https://www.ruby-forum.com/t/flickr-behavior/63057>\
**Category:** Radiant CMS\
**Created:** [June 11, 2006, 9:37am UTC](https://www.ruby-forum.com/t/flickr-behavior/63057 "2006-06-11T09:37:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roeland\_Moors](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8dc957/32.png) [@Roeland\_Moors](https://www.ruby-forum.com/u/Roeland_Moors)\
**Post date:** [June 11, 2006, 9:37am UTC](https://www.ruby-forum.com/t/flickr-behavior/63057/1 "2006-06-11T09:37:45Z")

</div>

I just tried RadiantCMS and I like it.

I decided to make a flickr behavior but I need some ideas.

There are 2 thing I need:

- a simple way to add a flickr thumb to a page for my blogging needs
- a gallery with one main page where there are pictures from one  
flickr tag and a preview page (a real page not lightbox).

For the second thing I think of just creating \<r:flickr:gallery\> and  
\<r:flickr:preview\> tags.  
That isn’t the problem. I alread have a simple r:flickr:gallery tag  
working.

The first thing is easy to create, but I have a question about this.

I think it would be nice to have this tag also available in other  
behaviors. Like a flickr thumb on a missing page or something like that.  
The easy way I could think of was to just create a snippet with the  
flickr tags I need and then use this snippet in other behaviors. But  
this doesn’t work because it isn’t possible to select a behavior in a  
snippet.

Maybe I just have to add these tags to the base behavior?  
That would work, but maybe not a good idea?

Any ideas or suggestions?

Roeland

---

<div class="post-metadata">

**Author:** ![Roeland\_Moors](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8dc957/32.png) [@Roeland\_Moors](https://www.ruby-forum.com/u/Roeland_Moors)\
**Post date:** [June 11, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/flickr-behavior/63057/2 "2006-06-11T18:23:24Z")

</div>

Hi Roeland:

On 11-Jun-2006 09:35 +0200, Roeland Moors was heard to say:

> I think it would be nice to have this tag also available in other  
> behaviors. Like a flickr thumb on a missing page or something like that.  
> The easy way I could think of was to just create a snippet with the  
> flickr tags I need and then use this snippet in other behaviors. But  
> this doesn’t work because it isn’t possible to select a behavior in a  
> snippet.
> 
> Maybe I just have to add these tags to the base behavior?  
> That would work, but maybe not a good idea?

The easiest way to do this right now is to create a page that has your  
flickr behavior and create a page part with the HTML fragment that you  
would like to include in a snippet. Then in your snippet all you do is:

\<r:find url="/path/to/page"\>  
\<r:content part=“pagepart”/\>  
\</r:find\>

This will render the page part in the context of the page behavior and  
include the result into the snippet.

Cheers,  
Oliver

---

<div class="post-metadata">

**Author:** ![Roeland\_Moors](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8dc957/32.png) [@Roeland\_Moors](https://www.ruby-forum.com/u/Roeland_Moors)\
**Post date:** [June 11, 2006, 8:14pm UTC](https://www.ruby-forum.com/t/flickr-behavior/63057/3 "2006-06-11T20:14:12Z")

</div>

Here is a list of tags I think I need:  
[http://webding.org/flickr\_behavior/](http://webding.org/flickr_behavior/)

If there are remarks, suggestions, …

Roeland

---

<div class="post-metadata">

**Author:** ![Roeland\_Moors](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8dc957/32.png) [@Roeland\_Moors](https://www.ruby-forum.com/u/Roeland_Moors)\
**Post date:** [June 11, 2006, 8:14pm UTC](https://www.ruby-forum.com/t/flickr-behavior/63057/4 "2006-06-11T20:14:12Z")

</div>

> include the result into the snippet.  
> Thanks. I’ll try that.

Roeland
