Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.Problem/Motivation
Taxonomy Block only supports one block. It would be nice to at least support one block per vocabulary.
Proposed resolution
Patch in #778892-2: Multiple blocks implements one block for each selected vocabulary.
Remaining tasks
- Needs review from maintainer.
- Should write some tests.
- Do a better job of cleaning up old variables when uninstalled.
User interface changes
- User can select more than one vocabulary on the admin page.
- The option to show the node count was moved to the block configuration page.
- The path for the links was added to the block configuration page.
API changes
- Changed the way variables were named (use double-underscore namespacing approach).
Original report by meecect
Maybe I'm just dense, but is there a way to have more than one taxonomy block? I would like to have 1 block for my 'tags' vocab and one for my 'categories' vocab. On the settings page, all I see is a way to select one vocab.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | multiple_blocks-778892-4.patch | 12.97 KB | BeaPower |
| #4 | multiple_blocks-778892-4.patch | 12.58 KB | deciphered |
| #2 | taxonomy_block-multiple-blocks.patch | 9.5 KB | tedfordgif |
Comments
Comment #1
meecect commentednm, now I see that it is listed on the project page that only 1 is supported. Are there any other modules that do this?
Comment #2
tedfordgif commentedHere is a patch to 7.x-1.0 that makes this module support up to one block per vocabulary. The node count display and link path can be configured per-block.
Comment #3
deciphered commentedA lot of minor Drupal coding standards issues, please refer to http://drupal.org/coding-standards
Comment #4
deciphered commentedRerolled patch so it applies via Drush make, also did some minor cleanup.
Comment #5
scottrigbyThe block node count option doesn't save if disabled.
Checkboxes need:
Minor spelling:
Comment #6
BeaPower commented@ 5 - Can you roll an updated patch, thanks.
Comment #7
BeaPower commentedHere's an updated patch, with the edits from #5
Comment #8
Taxoman commented(Leaving this issue/patch in the 1.0 trunk, as the subsequent updates of this module has extra code for multi-lingual support, which may mean more changes are needed for this patch. However, as that "new" multilingual support is totally breaking sites as per 1.3 (fixes has not been committed yet, wait for 1.4 until expecting something stable or working...), therefore better to keep this one against 1.0 for now.
Comment #9
Taxoman commentedOn second thought, this functionality is clearly needed and was supported on previous platform versions, so this is more of a task than a feature request.
Comment #10
mahyarsbt commentedHi
this is a good module and very useful.
but i think if this module structure changed to menu block structure is better.
I mean :
Can move "Taxonomy block" menu to admin>structure>blocks
and when click 'Add taxonomy block', user can add blocks from taxonomy unlimited with configuration to select vocabulary , select level/term/parent ... like 'menu block' module
Comment #10.0
mahyarsbt commentedUpdated description to reflect new patch.
Comment #11
macmladen commentedFirst of all, this is a needed feature, no doubt about it.
However, I'm not too sure it should go into
Add new taxonomy block(I know there are some other modules that go this way).It seems to me more natural to be part of Vocabulary->Edit where could be check-box
Enable this taxonomy as block.It is more of a taxonomy feature than a block feature.