By auxone on
I use the View and Panels modules, but I still haven't figured out how to make a View block with dynamic filters. My site is astrological so depending what a visitors sign is certain blocks should show content for the persons sign (nodes are categorized by sign via Taxonomy). I know this may be mixing form and function a bit, but currently I have a block with a simple PHP if statement based on a $_GET[sign] variable that I hardcode into my link which can show a sign specific graphic -- but that's easy.
How do I use this $_GET[sign] variable I am passing around to tell the View block which that I want nodes of type 'aries' instead of type 'taurus'. Is there a better way?
Thanks in advance.
Comments
progress...
After researching some more this doesn't seem like it's easy to do, so I figured I'd just make each sign have it's own block (even though technically it appears on the same 'sign' page, but with different content). I just used paths like sign/aries and sign/taurus to tell which block to show up. The downside is now I have 12 pages where I only had one, but I think this is a good use of Drupals core mechanics which generally seems better than 'rigging' something.