Closed (won't fix)
Project:
Taxonomy Block
Version:
4.6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
27 Oct 2005 at 04:28 UTC
Updated:
9 Nov 2005 at 00:36 UTC
I've been trying to implement this for a while now, but can't come up with a satisfactory solution.
I want to use the taxonmy block to only appear on nodes that are part of the taxonomy associated with that block. Is there any easy way of doing this? I've currently been adding nodes manually which certianly isn't ideal.
Any ideas are greatly appreciated.
Thx.
Comments
Comment #1
jeepfreak commentedI thought the taxonomy id was loaded in the $node array, but maybe not. You could always look it up by node id and then use an if($taxid = 11){ type function surrounding the block. It shouldn't be too hard. How good are you at this stuff?
Billy
Comment #2
mscullen commentedThanks for the quick response... unfortunately that's a little over my head; I'm not a programmer and don't know where to begin to follow your suggestion.
If would wouldn't mind explaining a bit further, I'd be appreciative.
Comment #3
jeepfreak commentedI think this code will work, but I have not tested it. You can add all the cases you want in the same way that I did. Just make sure you replace the taxonomy id's with your own.
HTH,
Billy
Comment #4
crunchywelch commentedIn 4.7 you wil be able to use a php code snippet to display blocks based on whatever check you want the php to do. Check the handbooks for code snippets, or maybe ask in the forums sinc I dont have this code offhand. In any case, we wont add this feature to this module since it will be part of a core drupal funciton. Thanks...