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
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
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
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
–
John L.
http://wiseheartdesign.com
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:
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
Bryan wrote:
shared host with Apahce/Lighttpd and MySQL.
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:
a. Install via Subversion:
% svn checkout \
http://dev.radiantcms.org/svn/radiant/tags/rel_0-5-2/radiant/
b. Use the -t flag while installing with the radiant gem command:
% radiant -t app .
Change to the directory that you installed Radiant in:
% cd /path/to/radiant/install
Use the patch command to apply the patch:
% patch -p0 patch.diff .
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
% radiant -t app .
I received an error message when using -t. I used --unpack instead.
Use the patch command to apply the patch:
% patch -p0 patch.diff .
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
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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs