So, I understand how to introduce a new variable (through $vars[]) into the using _phptemplate_variables() function in template.php...
What confuses me a little is this: Is it possible to pass a value to this custom variable using node information inside a Content Template? Or more generally, is there anyway to alter php_template variables using node info or other values from content template?
I'm quite an experienced developer, so I want to start off with a foundational theme that I can build on, that doesn't get in the way. It looks like Zen intends to be this, but as I am new to Drupal, can anyone comment if there are other contenders I should look at?
Want:
- minimal markup that I can style to my hearts content
- easy to change the minimal markup without going down into php layer if possible
- something with some examples would be nice
- templating system that is as html like as possible ( I love Genshi if anyone knows what I mean ).
I'm not sure if this is the right category to post this in - mods please feel free to move it to the right place.
I'm trying to add a block to a site that will only be shown when browsing the taxonomy, (for example, when looking at flowers/dasies), that shows the most popular items in with the current term, (dasies).
I can make a view using views that sort of does what I want, but I have to specify in views what the term is. I want the view to take the term from the page. This way I don't have to make a separate view for every taxonomy term.