# Radiant Article Categories

**URL:** <https://www.ruby-forum.com/t/radiant-article-categories/66194>\
**Category:** Radiant CMS\
**Created:** [August 23, 2006, 10:24pm UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194 "2006-08-23T22:24:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [August 23, 2006, 10:24pm UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194/1 "2006-08-23T22:24:11Z")

</div>

Hello,

Has anyone figured out a way to implement a Category system in radiant?  
I would like to organize my site more by subject than date.

Thanks,

Bryan

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [August 24, 2006, 3:36am UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194/2 "2006-08-24T03:36:55Z")

</div>

On Aug 24, 2006, at 5:24 AM, Bryan wrote:

> Hello,
> 
> Has anyone figured out a way to implement a Category system in  
> radiant?  
> I would like to organize my site more by subject than date.

Bryan, if you don’t need to put pages in more than one category, then  
you could just use the normal Radiant page hierarchy. eg:

Home  
|-Articles  
|–Category 1  
| |- article 1  
| |- article 2  
|–Category 2  
| |- article 3  
| |- article 4  
etc.

(I hope you read mail with a monospaced font, otherwise that might  
not make much sense 🙂 )

If you need something more complicated, eg. articles in multiple  
categories, I believe someone was working on a tagging system. Try  
looking through the list archives.

Bodhi

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [August 24, 2006, 3:56am UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194/3 "2006-08-24T03:56:56Z")

</div>

Bryan wrote:

> Has anyone figured out a way to implement a Category system in radiant?  
> I would like to organize my site more by subject than date.

You could apply the tagging patch:

[http://dev.radiantcms.org/radiant/ticket/26](http://dev.radiantcms.org/radiant/ticket/26)

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [August 24, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194/4 "2006-08-24T23:23:56Z")

</div>

John W. Long wrote:

> Bryan wrote:
> 
> > Has anyone figured out a way to implement a Category system in radiant?  
> > I would like to organize my site more by subject than date.
> 
> You could apply the tagging patch:
> 
> [http://dev.radiantcms.org/radiant/ticket/26](http://dev.radiantcms.org/radiant/ticket/26)

I am a little new to Ruby on Rails. Could you give a noobie friendly  
instruction for “patching” radiant? I am currently using .52 on a  
shared host with Apahce/Lighttpd and MySQL.

Thanks,

Bryan

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [August 24, 2006, 11:47pm UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194/5 "2006-08-24T23:47:21Z")

</div>

Bryan wrote:

> shared host with Apahce/Lighttpd and MySQL.

1. Patches should only be applied to a radiant application running in  
“application” mode. To create a Radiant install that runs in  
application mode you can either:

2. Change to the directory that you installed Radiant in:

3. Use the patch command to apply the patch:

Be warned, patching only works when it is done to a version that is  
compatible with the version the patch was created for. You may need to  
jump in and repair the code in places in order for it to work with a  
newer version. Patching isn’t necessarily for the faint in heart.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [August 25, 2006, 1:58am UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194/6 "2006-08-25T01:58:48Z")

</div>

> ```
> % radiant -t app .
> 
> ```

I received an error message when using -t. I used --unpack instead.

> 1. Use the patch command to apply the patch:

I think that I am doing something basic mistake. When I type:

~/development/radiant BC$ patch -p0 tagging\_support\_4.patch

The computer gives no response or error message in the terminal window.

Any ideas?

Thanks again,

Bryan

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [August 25, 2006, 2:17am UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194/7 "2006-08-25T02:17:35Z")

</div>

Bryan wrote:

> ~/development/radiant BC$ patch -p0 tagging\_support\_4.patch  
> My bad, you should pipe it into the patch program:

~/development/radiant BC$ patch -p0 \< tagging\_support\_4.patch

–  
John long  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [August 25, 2006, 8:18am UTC](https://www.ruby-forum.com/t/radiant-article-categories/66194/8 "2006-08-25T08:18:05Z")

</div>

> Patching isn’t necessarily for the faint in heart.

Yeah, it is better left to the wiseheart 😉

Thanks again, John. The revised command worked. I received the output  
listed below:

b-cs-imac-g5:~/development/radiant BC$ patch -p0 \<  
tagging\_support\_4.patch  
patching file test/unit/page\_context\_test.rb  
Hunk #2 FAILED at 372.  
1 out of 2 hunks FAILED – saving rejects to file  
test/unit/page\_context\_test.rb.rej  
patching file test/unit/behaviors/tag\_display\_behavior\_test.rb  
patching file test/unit/behaviors/tag\_listing\_behavior\_test.rb  
patching file test/unit/tag\_test.rb  
patching file test/unit/page\_test.rb  
patching file test/fixtures/pages.yml  
Hunk #1 FAILED at 356.  
1 out of 1 hunk FAILED – saving rejects to file  
test/fixtures/pages.yml.rej  
patching file test/fixtures/tags\_pages.yml  
patching file test/fixtures/tags.yml  
patching file app/behaviors/tag\_display\_behavior.rb  
patching file app/behaviors/tag\_listing\_behavior.rb  
patching file app/models/page\_context.rb  
patching file app/models/tag.rb  
patching file app/models/page.rb  
patching file app/controllers/admin/page\_controller.rb  
patching file app/views/admin/page/new.rhtml  
patching file db/schema.rb  
patching file db/migrate/010\_create\_tags.rb

I looked at the rej files and compared the patch with the original. I  
think that I am approaching my technical limits(for now). I appreciate  
you taking the time to help me with this.

Thanks,

Bryan
