Trying to set a filter to use the terms of the current page doesn't work. When saving the block configuration ALL "Use the [VOCABULARY NAME] terms of the page being shown." are selected as true, even if you only select one.

This is because the block config form uses the same field name for all _CURRENT checkboxes.

Then when the block is shown, the block results are NOT actually filtered by the terms of the current page. Instead it seems to show all/any nodes.

Comments

willieseabrook’s picture

Status: Active » Needs review
StatusFileSize
new1.34 KB

See attached patch

kristen pol’s picture

Although your patch probably works just fine, I'm going to make the change slightly differently to match version 6 (I had fixed this issue for that version after the D7 port). Also, just an fyi that it is standard practice in Drupal coding to put a comma after the last array element when the array is split out with each element on its own line, e.g.

$array = array(
'one' => t('One'),
'two' => t('Two'),
'three' => t('Three'),
);

I noticed your patch got rid of the comma for one such array.

Thanks,
Kristen

kristen pol’s picture

Status: Needs review » Fixed

I have checked in the fix to the dev version. It will get rolled to beta2 at some point.

Kristen

kristen pol’s picture

Status: Fixed » Closed (fixed)
knalstaaf’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Closed (fixed) » Needs review

I'm having the same issue on D7.9 using multiple vocabularies on one page.

All nodes are being displayed and not filtered out by the terms that have been checked on the page that's being viewed. I limited the checked terms so I'd know only 2 nodes should show up, but I got all the nodes nonetheless.

knalstaaf’s picture

Status: Needs review » Closed (fixed)

I misinterpreted the method of filtering in the configuration of the block.

With the "Use the [vocabulary name] terms of the page being shown" option being checked on the right vocabulary list it works as designed.

I believe this is one of the very few related content modules that does a decent job at its purpose. It should definitly get its well deserved place into the comparision table. Tried all the others in that table, none of them worked for my case. Featured Content kicks their asses to that.

Thanks!

kristen pol’s picture

Thanks for the kudos knalstaaf. I'd love for the FC module to get into the comparison table though I'm not sure how that can happen as the page is not editable. I did add a comment with the FC module mentioned. Feel free to leave a comment there or contact the author of the page and maybe they will add it.

Kristen