This is what I was told to do
create a new context ->
1. add the condtion: "taxonomy" (choose your specific term from the list)
(or add condition: taxonomy term)
2. add reaction "block", choose your block from the list and define visibility
That is what I did, but that last part there "define visibility" I do not see how I do that. I set up the new context per those directions (minus the define visibility part) and the custom block that I created (I created a block that in it is an iframe of a certain taxonomy term page "http://gartalk.garlandco.com/metal-what-others-are-saying") . I attached a screen grab of how the new context is set up.
This goes along with -
I created this thread http://drupal.org/node/1562052 and it doesn't seem like anyone has a solution - do you?
How would I make a block get displayed on certain taxonomy pages and have that block display only a specific taxonomy term articles?
Something like this is what I'm trying to achieve http://drupal.org/files/BestEx.jpg
Please let me know if you can help me achieve what I'm trying to do, thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| new-context.jpg | 52.02 KB | fineartist99 |
Comments
Comment #1
tekante commentedThe taxonomy condition in conjunction with the block reaction should allow your block to display only on pages with certain taxonomy terms. To have the block display only articles with the same taxonomy term as the current article you'll need to put that into the code generating content for your block. If using views you might look into providing a default argument plugin for a taxonomy term contextual filter which pulls the term ids from the current node being viewed.
Comment #2
tekante commentedComment #3
fineartist99 commentedWhat info do you need more of tekante? Also, I just disabled the context to see if that was causing the block to NOT display and on the page that the block (which now just has an image in it) and the block is not even showing up! WTF?
Here's a link to see how I set the block up
http://gartalk.garlandco.com/sites/all/themes/bluemasters/images/blockProblem.png
I cleared my cache and no luck getting that damn block to display on this page http://gartalk.garlandco.com/How-Things-Work
Again, any help is greatly appreciated. Thank you in advanced.
Comment #4
tekante commentedfineartist99 - The screenshot you sent appears to be of the block configuration screen attempting to limit places where a particular block displays. If you wanted it to display only on the How-Things-Work page then generally you would put either How-Things-Work (instead of the full URL) or, if that page is a node the underlying node path (node/####).
Your original post mentioned wanting the block to show on any page tagged with a certain taxonomy term (I assumed from a set of terms) and then use the term to control the contents of the block. To do that you should use context and ignore the visibility settings on the block configuration as these are two separate systems of making a block appear on the page.
If you just need the block to display on How-Things-Work then you can use the block system and pages configuration but you need to correct the path in your screenshot.
If you need the block to display on any page containing a particular taxonomy term that is when you should use context with a taxonomy condition and block reaction.
Controlling what data displays in the block based on what page it is on is outside of the scope of context though my previous post mentioned some areas in views that might get you started.
Comment #5
fineartist99 commentedI altered the settings in the block and it still is not showing up - see here
http://gartalk.garlandco.com/sites/all/themes/bluemasters/images/blockC.png
I previously posted something here http://drupal.org/node/1562052 about what I'm trying to do. I think you misunderstood what I was trying to do. Check out that link above to the previous topic and I think you'l fully understand what I'm trying to do. I just want the sidebar first block to get displayed on a handful of specific taxonomy term pages.
I thought I'd disable the context block and just do a very simple block made up of just an image and try getting that displayed on one of those taxonomy pages, and still no luck even after changing the path that the block should be getting displayed on - taxonomy/term/4
Any help is greatly appreciated. Thank you in advance.
Comment #6
fineartist99 commentedComment #7
tekante commentedThe settings you have look correct and when I set up a test site and a block with the same settings as yours it shows on the taxonomy term page specified so I think you have something else causing the issue you are seeing. I would suggest trying to setup a block on a basic install to get a feel for how the settings are working and then try to implement on your site and track down what is preventing the block from displaying.
Comment #8
tekante commented