sub tags more than 2 levels deep?

3 views
Skip to first unread message

rogerdpack

unread,
Nov 14, 2008, 8:23:41 PM11/14/08
to substruct
Anybody know of any work or patch that allows this?
If I created it would a patch that allows this likely make its way to
trunk?

Thanks!
-=R

Nate Lowrie

unread,
Nov 15, 2008, 7:58:50 AM11/15/08
to subs...@googlegroups.com
Roger,

I don't know of any work, although it should not be too hard to accomplish.  I am pretty sure that the database schema does not need to change because the tag table already has a parentID field, which gets set to 0 if it is a top level id or the id of the parent tag.  Hardest part is going to be modifying the controller and how it displays data.  Might need to go to a snippet based system for the display.

Nate L.

seth b

unread,
Nov 15, 2008, 5:46:37 PM11/15/08
to subs...@googlegroups.com
I've modified sites before to use infinitely nestable tags. Just
didn't see the interest for the main distro. Like Nate says the DB is
already setup for it. You just have to change the UI bits.

--------------------
seth - subimage llc
-----
http://sublog.subimage.com
-----
Cashboard - Estimates, invoices, and time tracking software - for free!
http://www.getcashboard.com
-----
Substruct - Open source RoR e-commerce software.
http://code.google.com/p/substruct/

Nate Lowrie

unread,
Nov 17, 2008, 1:38:04 PM11/17/08
to subs...@googlegroups.com
What is the disadvantage of including it in trunk? I don't see any
reason not to.

Nate L.

seth b

unread,
Nov 17, 2008, 7:23:07 PM11/17/08
to subs...@googlegroups.com
The standard template most people will be working from only includes
two levels of tags. More rails savvy people will be able to modify it
to suit their needs.

That was my thinking when limiting to 2 levels.

--------------------
seth - subimage llc
-----
http://sublog.subimage.com
-----
Cashboard - Estimates, invoices, and time tracking software - for free!
http://www.getcashboard.com
-----
Substruct - Open source RoR e-commerce software.
http://code.google.com/p/substruct/



Roger Pack

unread,
Nov 22, 2008, 10:30:22 PM11/22/08
to subs...@googlegroups.com
Here's a patch to allow them in the admin. If anyone would like this
rolled into the 'real' distro I can create a more comprehensive patch.
Thanks!
-=R
allow_multiple_tag_depth.diff

seth b

unread,
Nov 23, 2008, 4:11:06 AM11/23/08
to subs...@googlegroups.com
If you could make a ticket / attach the patch that'd be great. It will
allow me to revisit it later and not forget about the email ;)

--------------------
seth - subimage llc
-----
http://sublog.subimage.com
-----
Cashboard - Estimates, invoices, and time tracking software - for free!
http://www.getcashboard.com
-----
Substruct - Open source RoR e-commerce software.
http://code.google.com/p/substruct/



Nate Lowrie

unread,
Nov 23, 2008, 8:25:29 AM11/23/08
to subs...@googlegroups.com
Roger,

Thanks for the hard work you have done with this patch. I know it
will come in handy with something I have planned.

Nate L.

Reply all
Reply to author
Forward
0 new messages