By jim0203 on
Say I was developing a site that had 5 main nodes about Cats, Dogs, Mice, Sheep and Goats. Each one of these nodes has a number of nodes which referrs to them using nodereference in CCK. I want to create a view which displays in a block in each of the five main pages. When it's on the "Cats" page it shows only articles that refer to the Cats page; when the block's displayed on the "Dogs" page it shows only articles that refer to the Dogs page.
I guess I'll need some kind of fancy PHP arg to do this, but I'm really not sure where to start. Any ideas?
Comments
change block visibility with php depending on variable in conten
I have a block on a page in which I have php code (on the page) the php page changes as the user goes through the steps of filling in a form, etc. Is there any way I can change the bottom block to be invisible at step 2 for example , can I read a variable from a content into this block to determine whether its visible or not?
Diana Castillo