Hi,
I simply want to filter terms of only one vocabulary. I have at less two problems:
- Whith URL = taxonomy/term/1,2, appears "page don´t found" I don´t now how display it.

- at TF configuration page display this menssage "None of the filter menu blocks has been assigned to a region. Assign a block to a region here." But I have assigned into siderbar first.
Thanks

Comments

solotandem’s picture

Unfortunately, core dropped support for the display of taxonomy/term/1,2 in Drupal 7. The filter module can display the filter menus but nothing is generating the content. My intention is to generate this content, but have not done so yet. Your choices are to: 1) design a view and modify its query (as views by default will do an "OR" on the taxonomy terms, not an "AND" which is probably what you want), or 2) build a module that has "taxonomy/term/1,2" in its menu callbacks.

Regarding the configuration page message, I will look into that.

Thanks for the feedback.

esculcar’s picture

Thanks for the reply.
So until it is ready the function "generate content" is not posible to show contet automatically. I have to do a view each by one?
Whith Drupal 6 is the same? I will have de same problem? or it´s easier to resolve adding others modules?
My intención is to filter a large number of tags to show only the content who have the selected tags.
Thank you very much

solotandem’s picture

The functionality is present in Drupal 6 core and you should have no trouble using the 6.x version of this module to filter the content displays. The functionality is not replicated in Drupal 7 core. As I mentioned, my intention is to replicate this functionality in Drupal 7 version of this module.

esculcar’s picture

I glad to hear it thanks you very much for your work

nlhnam’s picture

Install Views module can fix this problem. (Enable View taxonomy_term)

solotandem’s picture

@nihnam, to my knowledge the views module will not help with this as the standard view for taxonomy/term/% uses an OR on all of the term ids instead of an AND. Core menu callback for this URL provides the desired AND support.

esculcar’s picture

Priority: Normal » Minor

@solotandem Sorry I tried but I´ve failed. I don´t know how to modify the query to "AND".
This module is very important for my project because it allows very easily find relevant information. If you could explain how to display the view, I would be very grateful.
No intention of pressing, you could tell me when will be ready the funtionality to display the content for Drupal7
Thank you very much

nlhnam’s picture

Subscribed to your new views.

solotandem’s picture

@edum1978, install Multi-Term Views module and Views 3 (either the alpha or the dev version). These modules work well for me along with this module.

Post some feedback here to let me know.

If the link above does not display the release, download the module from this link.

esculcar’s picture

Title: don´t display "term/x,y" » It´s works

It works!! but It return this error:

"Notice: Undefined index: current_block_title in taxonomy_filter_block_current_content() (line 316 of C:\Archivos de programa\xampp\xampp\htdocs\drupal\drupal-7.0\sites\all\modules\taxonomy_filter-7.x-1.x-dev\taxonomy_filter\taxonomy_filter.module)."

and persit the notificatión that I reported you "None of the filter menu blocks has been assigned to a region...".

Thank you very much

solotandem’s picture

@edum1978, the first notice makes sense (I will fix that), but the second does not (yet). Would you dump some information and post it here (as an attachment)?

Dump the $regions array in _taxonomy_filter_block_check() in the file taxonomy_filter.admin.inc. If you are not familiar with how to do this, either insert (on the line following "$regions = _block_load_blocks();"):
- var_dump($regions);
- dsm($regions); (if you have installed/will install the Devel module)

With the former, right click on the settings page for this module and view source. Then copy and paste the output of this array (you can prune it to the items related to this module) to a file and attach it to your comment here.

esculcar’s picture

Title: It´s works » array
StatusFileSize
new36.38 KB

I hope I did it ok

solotandem’s picture

Title: array » Notice displays even when filter blocks are assigned to a region
Assigned: esculcar » Unassigned

The attachment is fine (you need only include from the first line to the line before

Can you enable one of the blocks from this module, visit the mappings page as before, and attach the array printout again? Or, are you saying you have a block enabled and this is the array printout?

drocra’s picture

I'm receiving the same error message with the latest 7.x stable version:

Notice: Undefined index: current_block_title in taxonomy_filter_block_current_content() (line 315

esculcar’s picture

providing more information if necessary; complete error mensaje:

Notice: Undefined index: current_block_title en taxonomy_filter_block_current_content() (línea 315 de ../sites/all/modules/taxonomy_filter/taxonomy_filter.module).
Notice: Array to string conversion en drupal_validate_utf8() (línea 1381 de ../includes/bootstrap.inc).
Warning: preg_match() expects parameter 2 to be string, array given en drupal_validate_utf8() (línea 1387 de ../includes/bootstrap.inc).

appears when "Taxonomy filter - search results" block is enable

solotandem’s picture

Assigned: Unassigned » solotandem
Status: Active » Fixed

Notice about filter blocks being assigned to a region is eliminated with this commit.

Notice about current_block_title is eliminated with this commit.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sowa’s picture

Hi,

Notice about filter blocks being assigned to a region is eliminated with this commit.

I have just setup a fresh drupal installation with this module enabled and I do have the notice.

regards,

marketacumen’s picture

Using Drupal 7.x I also have the same notice. The issue is, I believe, that taxonomy_filter uses _block_load_blocks to check to see if the module has the blocks assigned. Problem is that when using the admin theme, _block_load_blocks loads blocks based on the global $theme_key, which is not the same as the front-end theme always. (Again, showing how dependencies on globals is generally error prone.)

That said, you can either assign the same blocks to a region in your admin theme to get rid of the error, or fix the code. The fix would be, I think, to just test that the taxonomy_module blocks are assigned in some theme, perhaps

function _taxonomy_filter_block_check() {
  /* @var $query SelectQueryInterface */
  /* @var $result DatabaseStatementBase */
  $deltas = array_keys(taxonomy_filter_block_info());
  $query = db_select('block', 'b');
  $query->addExpression('COUNT(b.bid)');
  $query->condition('b.status', 1)
  ->condition('b.module', 'taxonomy_filter')
  ->condition('b.delta', $deltas);
  $result = $query->execute();
  $found = $result->fetchField();
  
  if (!$found) {
    drupal_set_message(t('None of the filter menu blocks has been assigned to a region. Assign a block to a region !here.', array('!here' => l('here', 'admin/structure/block'))), 'warning');
  }
  return $found;
}