# Handling categories

**URL:** <https://www.ruby-forum.com/t/handling-categories/64208>\
**Category:** Radiant CMS\
**Created:** [June 23, 2006, 2:51am UTC](https://www.ruby-forum.com/t/handling-categories/64208 "2006-06-23T02:51:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyleh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Post date:** [June 23, 2006, 2:51am UTC](https://www.ruby-forum.com/t/handling-categories/64208/1 "2006-06-23T02:51:45Z")

</div>

I’m in the process of migrating my site (from Typo) over to Radiant. I’m  
still relatively green with Rails and all but have been following this  
list  
for sometime now and really feel things are headed where I want to take  
my  
site.

I was wondering if anyone has done something similar, in other words,  
migrated a blog to Radiant and if so, how did you handle your blog  
categories inside of Radiant? I could create a folder structure of  
categories and add pages underneath as needed but that limits me to one  
category per post, something I rarely do. I’m open to any suggestions  
anyone  
has for handling this behaviour.

Also, what about tagging? Kind of the same as categories but generally I  
have more tags per post then categories. What sort of mechanisms have  
people  
used with Radiant for this?

Thanks in advance.

Kyle H.  
[www.kyleheon.com](http://www.kyleheon.com)

---

<div class="post-metadata">

**Author:** ![kyleh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Post date:** [June 23, 2006, 6:04am UTC](https://www.ruby-forum.com/t/handling-categories/64208/2 "2006-06-23T06:04:34Z")

</div>

On 6/23/06, Oliver B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> In May, Andrew Montgomery posted a patch that implements tagging:  
> [http://lists.radiantcms.org/pipermail/radiant/2006-May/000294.html](http://lists.radiantcms.org/pipermail/radiant/2006-May/000294.html)

I see Andrew’s patch should be applied to the radiant build 42. Is  
there a port of the patch as a plug-in (like has been done for other  
behaviors)? Or, what are the pros and cons of applying this patch to  
radiant, since I usually update (via svn) my installation regularly to  
keep the code base current? Thanks for the clarification. --M

---

<div class="post-metadata">

**Author:** ![kyleh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Post date:** [June 23, 2006, 6:29am UTC](https://www.ruby-forum.com/t/handling-categories/64208/3 "2006-06-23T06:29:33Z")

</div>

On 23-Jun-2006 06:02 +0200, Maurizio B. was heard to say:

> On 6/23/06, Oliver B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > In May, Andrew Montgomery posted a patch that implements tagging:  
> > [http://lists.radiantcms.org/pipermail/radiant/2006-May/000294.html](http://lists.radiantcms.org/pipermail/radiant/2006-May/000294.html)
> 
> I see Andrew’s patch should be applied to the radiant build 42. Is  
> there a port of the patch as a plug-in (like has been done for other  
> behaviors)? Or, what are the pros and cons of applying this patch to  
> radiant, since I usually update (via svn) my installation regularly to  
> keep the code base current? Thanks for the clarification. --M

The patch does not apply cleanly to the current revision from SVN.  
Unfortunately it is not very straight forward to put this patch into a  
plugin, since it actually needs to modify the page model, though it  
might  
be possible.

Oliver

---

<div class="post-metadata">

**Author:** ![kyleh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Post date:** [June 23, 2006, 7:43am UTC](https://www.ruby-forum.com/t/handling-categories/64208/4 "2006-06-23T07:43:41Z")

</div>

Oliver B. wrote:

> > radiant, since I usually update (via svn) my installation regularly to  
> > keep the code base current? Thanks for the clarification. --M
> 
> The patch does not apply cleanly to the current revision from SVN.  
> Unfortunately it is not very straight forward to put this patch into a  
> plugin, since it actually needs to modify the page model, though it might  
> be possible.
> 
> Oliver

I’m still working on the patch, I’ve just been very busy as of late.  
Hopefully I’ll get it perfected and into core so it won’t need to be  
turned into a plugin 😉

However, I’ll investigate the possibility of making it a plugin as well.

---

<div class="post-metadata">

**Author:** ![kyleh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Post date:** [June 23, 2006, 3:19am UTC](https://www.ruby-forum.com/t/handling-categories/64208/5 "2006-06-23T03:19:14Z")

</div>

Hi Kyle,

On 22-Jun-2006 20:50 -0400, Kyle H. was heard to say:

> I was wondering if anyone has done something similar, in other words,  
> migrated a blog to Radiant and if so, how did you handle your blog  
> categories inside of Radiant? I could create a folder structure of  
> categories and add pages underneath as needed but that limits me to one  
> category per post, something I rarely do. I’m open to any suggestions anyone  
> has for handling this behaviour.

I have been migrating my small site from Typo to Radiant and I dropped  
categories entirely. But I assume putting things is separate folders  
might  
be a good idea, though [Hypertext Style: Cool URIs don't change.](http://www.w3.org/Provider/Style/URI) suggests to  
not  
do this.

> Also, what about tagging? Kind of the same as categories but generally I  
> have more tags per post then categories. What sort of mechanisms have people  
> used with Radiant for this?

In May, Andrew Montgomery posted a patch that implements tagging:  
[http://lists.radiantcms.org/pipermail/radiant/2006-May/000294.html](http://lists.radiantcms.org/pipermail/radiant/2006-May/000294.html)  
I am using it and it works great for me. I had to write some mixins to  
make  
PostgreSQL work with the acts\_as\_taggable gem, just let me know if you  
need  
them as well.

Cheers,  
Oliver
