This page is intended to serve as the base documentation for the Advanced Taxonomy Blocks module. Only questions or comments directly related to the documentation should be posted here. Bug reports, feature request and support request should be filed on the issue queue at the Advanced Taxonomy Blocks project page. Those who are looking to find out how to use Views to have nodes of children terms shown instead of just nodes that are tagged with the term itself should view this tutorial on overriding the taxonomy page for Views 2.
The Advanced Taxonomy Blocks module is more than just another taxonomy menu; it provides a level of configurability and flexibility not present in any other Drupal taxonomy menu related module to date. In addition to allowing administrators to create multiple blocks with the ability to choose which vocabularies will display in each block, the module also gives you control over the full path of the links. Using what I labeled path patterns, it lets you choose the pre-aliased path to any landing page of your choosing on a per vocabulary basis (you can have more than one landing destination within a single block). This makes it especially useful for routing links to views that accept taxonomy term ids as arguments.
If you are new to Drupal the module is designed to work out of the box with a default Taxonomy block already in place. Once you have installed the Advance Taxonomy Blocks module you can go to the blocks page and you will find a block labeled "Categories - Taxonomy Block".
If you are a battle hardened Drupal coder and you have more precise needs then you will want to visit the admin pages provided by the module at "admin/settings/taxonomyblocks" and learn your way around. This tutorial is intended to walk you through the configuration options available in that section and thereby help you take full advantage of the module’s capabilities.
When you first go to the admin/settings/taxonomyblocks page before having made any customization you will see the following two blocks: Categories and Forums. The Categories block when un-altered automatically shows all existing vocabularies (with the exception of the Forums vocabulary) in the default order that has been set for those vocabularies on the standard taxonomy administration page (admin/content/taxonomy). The Forums vocabulary automatically holds a list of all available forums active on your site. If you ask why I added this block it is because Forums are created with taxonomy, so I figured I might as well add it here since it took almost no additional work. These two default blocks are created automatically at install time and cannot be deleted. They can however be configured or reset to original defaults using the links to the right of the title.
New taxonomy blocks can be added by clicking the "Add New Taxonomy Block" tab at the top of the page. Once you click that link you will be prompted to enter a title for the new block, after which you will be taken directly to the configuration page for that block.
Enable/Disable:On the configuration page you will see a row for each of the enabled vocabularies on your website with a check box to enable or disable them individually. It is important to understand that alterations that you make to this page have no effect on the vocabulary itself or on any other blocks that you may have set up. It was set up this way to enable customizing blocks individually without altering the original information.
Node count options: In addition to being able to turn vocabularies on and off for a specific block you can also chose which content types you want to show counts for each term. This option does not effect the actual number of results that will show up on the landing page directly, but if you have configured the vocabulary to send the links to a view using a particular path pattern (which I will go into shortly) and that particular view is set to filter according to content type, then it may be useful to make the content type settings match up so that the landing page will not be out of sync. You can also choose to have no node count at all.
Custom Title: The custom title setting applies to blocks in which you have multiple vocabularies in one block (as is the case for the default Categories block). In such blocks each vocabulary has the title of the vocabulary above the menu by default. If for some reason you want to display a different title for a particular vocabulary you can change it here. You can also enter to have only the menus show up with no title separating them.
Path Pattern: Path patterns are used to allow you to link to anywhere on your site rather than being limited to the standard taxonomy pages. The default is taxonomy/term/%tid. On run time the %tid is replaced for the actual tid. An example of how this can be used can be seen in the Categories block I run on this site. If you look to at the Categories block to your right you will see a vocabulary that I have given the title “Drupal Tutorials by Difficulty Level”. All of the links in that block make use of a path pattern that goes to a view that accepts two arguments. Since the taxonomy tid is the first argument and the catch all wild card is “all”, I set the path pattern as follows: drupal-tutorials/%tid/all. To really make the most of this option you have to understand views arguments, which is a whole subject in and of itself.
List of place holders for Advanced Taxonomy Blocks module:
%tid - The tid of the term
%termname - Text version of the current term
%nid - The node nid if a page is a node
%nodeuid - The uid of the user who created the current node (if that page is a node)
%nodetype - The node type of the current page.
%useruid - The uid of the current user viewing the page.
%vocabname - The name of the vocabulary.
%vid - The vocabulary id of the term.
LinkTitle Pattern: The link title pattern allows you to control what users see when they hover over the links in the menu for each particular vocabulary. The default is set as "Content tagged with @termname" where the @termname is substituted for the real term name at run time. Using the example of the Drupal Tutorials by Difficulty Level section, I set the link title pattern as “Drupal Tutorials marked as @termname”. You can hover over the links to see the result.
Weight: Used to arrange the vocabularies order of appearance within each block.
Reset: Reset an individual block to its original settings.
Omit tids: This setting allows you to chose tids that you don’t want to appear on that particular block. This setting is particularly useful if you have a particular vocabulary that has a top level term that you don’t necessarily want users to see and would rather only expose the children. By checking off the term in question it has the effect of disabling that term for this block, and like a disabled menu item the link disappears to reveal the children of that link.
Reset All: This of course resets the entire block to defaults. Useful if you mess everything up.
That’s pretty much all there is to it for now. There will probably be a couple of new features and options added in the future, and this page will be updated accordingly.
Awesome Work
I think this will be in fairly widespread use after a short while.
At last
Hi,
First off this module has finally solved so many issues that were associated with modules like taxonomy menu - I am over the moon that I have found this module!
I am just now wondering how did you get the nice urls in your categories block? instead of using %tid in your path pattern what are you using?
thanks again for a great module
How to get the paths to look like my menu does
@Duffers,
In the module I route all the path patterns through the l() function so it maps the path patterns to existing aliases and replaces them automatically. This is really just Drupal core taking care of all of this. Yet another good reason to use the l() function rather than using your own code to create links programmatically.
More about url aliases
By the way, the specific url aliases that Drupal will create from the taxonomy/term/%tid can be controlled in the pathauto admin page at admin/build/path/pathauto.
Great, but there is one little problem
Hello
I am new to drupal, and your module makes it much more easier to create menus. However, I find it really annoying that I can't remove the the (number) before each term.
Thanks
Actually you can remove the node count
The node count can be removed on the configuration page for each block by choosing "Don't show node count" under the Node count options drop down menu. Each vocab can be configured individually, so you must set this on each since the default is to show the count.
All right, thanks
I guess I should learn the basic drupal taxonomy first (nodes)...
Advanced Taxonomy Blocks settings page
Just to clarify, the node count settings are at "admin/settings/taxonomyblocks" not inside of the regular taxonomy administration pages.
Display all terms regardless of count
This is a wonderful module. I will be using it on a few sites soon.
I didn't see a setting that will allow it to list all of the terms in the taxonomy regardless of how many nodes are associated with it. Currently, it only displays terms that have a count > 0. Is there some setting that allows us to change this to count >= 0?
Thanks.
This feature now exist
This feature now exist in the 2.2 release, and after testing it I actually decided to use it on the Categories block that I use on this site.
I can't find this setting
Where is this setting? I am using 6.x-2.5 and cannot find it anywhere.
Thank you and sorry to bother.
Great Mod! Many countless thanks!
Using with redirect module
I love this module but it doesn't appear to pick up my Taxonomy redirects of terms to nodes?
Issue queue
Please use the project page issue queue for feature request.
Taxonomy Hierarchies
This is a great module. One feature I would like is the ability to only traverse a fixed number of levels. I have a huge location based hierarchy... I would only like to expose United States-->Alaska, United States-->Arizona but not expand further to show cities. I supposed I should do some digging in the code.
Thanks for the great work.
Please use the issue queue for feature request
If you don't post it on the issue queue it is likely to get forgotten. I have a lot on my plate. For fast results include a patch.
Integration with
First off, my apologies for posting this here as it should go on the drupal issues page, but since i have been trying for 30 minutes to login into drupal so i can post and it refuses to give me access and i have resorted to posting here with the understanding my question may not get answered. Secondly, great module! My question is does it work with the CCK content taxonomy options module? I don't think so. If i add taxonomy terms to a select list. and then create content using a term selected in the list, the new item (in this case a job description) does not appear in the taxonomy block. Perhaps i am just overlooking something. i hope so because this would be an amazing module if i am. if not, you might want to consider it as a feature. this module combined with the cck content taxonomy module would be awesome! Nice work, Aaron. Cheers, Kevin
On the Content taxonomy
On the Content taxonomy project page it states the following:
"storage settings: storage is done in the CCK tables. But for many modules it's necessary, that the saved values are also available to the core Taxonomy system. In this case it's possible to save values additionally to the core taxonomy database table. (Drupal 6)"
This implies that there is an option for saving the information to the standard Drupal taxonomy table. If saved to the standard taxonomy table then the Advanced Taxonomy Blocks module has access to the terms. Otherwise it won't work. I don't know where that setting is changed as I don't have any use for the module myself.
Thanks
That worked. It looks very good. I don't imagine there is anyway to change the layout without seriously hacking the module, is there? The list format can go very long down a page if there are many terms. A nice horizontal layout would be great. I would add this to the issues pages at drupal.org but it still will not let me login. I have created three different accounts. So it looks like I am stuck commenting here. Many thanks. Cheers, Kevin.
A lot is possible with CSS
A lot is possible with CSS but in the long run I doubt the module would be well suited for that kind of layout.
pre selected category ( term )
So if I want to add content directly under a category i.e. I don't want to display dropdown of terms, instead as the user click on one category in block, drupal should display all available nodes and also allow new node to be added directly under the selected category . Is it possible in this module ? If yes how .
Thanks!
better integration with views ?
nice work ! i think that the definitive taxonomy menu/block module could be able to get a list of terms from a view (a tree ?) or a list of nodes and the terms associated with the nodes, then render only this terms selection (so you can show also the right node count too). just my 2c.
This is great but I thought
This is great but I thought this was going to help me solve the following problem:
I have an existing Menu Block which I would like to hide unless nodes with a specific TAXONOMY term are displayed.
So the block Drinks should be only shown when a node with taxonomy=drinks is clicked.
Any suggestions would be much appreciated.
Hi i have a vocabulary with
Hi
i have a vocabulary with states as parents and cities as child
nodes are tagged with only child terms (no node is tagged with a state term)
i've created a block for this vocabulary
so i get a menu with only child displayed ( and not a hierarchical menu with states as parent and cities as child )
is this the expected behavior or should i get a hierarchical
menu ?
thanks
pierluigi
Hello there, Thanks a lot for
Hello there,
Thanks a lot for your work. I have a question about this module: can I also show nodes for each term in the block?
Thanks.
Post new comment