This module uses the variable taxonomy_context_tabs_vocab to find out the vacabulary to use for generating buttons. However this variable doesnt have a corresponding admin interface. Because of this it uses the default vocabulary id of 1 to display the top level buttons for the site navigation.
function taxonomy_context_get_buttons() {
$buttons = array();
$context = taxonomy_context_get_context();
if(variable_get("taxonomy_context_buttons_vocab", 1)) {
$tids = taxonomy_context_vocab_first_child_terms(variable_get("taxonomy_context_tabs_vocab", 1));
If you have a number of vocabularies, and the one you want to use for showing taxonomy_context is not the first one, this functionality of showing buttons would fail.
Solution(any of the following):
- Add the required form field for this variable.
- Use the variable
summary_vocab_idinstead. - Add the field manually in the database.
Comments
Comment #1
nedjoThanks. I've now added a field to the module configuration settings for selecting the desired vocabulary.
Comment #2
(not verified) commented