Posted by mbarron2896 on August 30, 2008 at 1:51am
| Project: | Directory |
| Version: | 6.x-1.0-alpha1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
I love the simplicity of the directory plugin. It's great.
But is there an easy to put it into a block so I can show it in the sidebar?
Comments
#1
1 more for that. So much more useful than a lot of the taxonomy mods out there. A block would also get it into Panels.
#2
+1
#3
I guess it's not too hard too do that with views module!? will try later, want that too.
#4
http://drupal.org/project/vocabindex
http://drupal.org/project/taxonomy_list
Using views: http://drupal.org/node/128085#comment-3452522
#5
The original poster wasn't too clear about what he wants in the block but here is a patch that does what I needed.
It adds one block which is the list of subterms for a given term.
This block will only work on taxonomy/term/% pages as it gets the term ID from the url to create the subterm list. This is to replicate the subterm list that appears in the help text on the taxonomy/term/% pages.
If you are using that block you will probably also want to use my other patchto allow you to disable that help text subterms list. - #1034746: Add an option to disable the subterm list in the help text on taxonomy term pages
It also adds a directory block for each vocabulary on the site.
These directory blocks will show the directory for that vocab as they do on the directory/vocabulary/% pages.
#6
Here is another version of the patch with the correct block caching settings.
#7
Here is an updated version that adds a vocabularies setting to the subterms block configuration.
It allows you to select which vocabularies the subterms block will display for. This includes an 'All' option, which is the default.