I wanted to make a override of webform mail template, so I can send custom data to paying and non paying partners on my site. As I am using ZEN subtheme, I need to put all the the template in obviously template folder of subtheme, not a root one.
I wanted to make a override of webform mail template, so I can send custom data to paying and non paying partners on my site. As I am using ZEN subtheme, I need to put all the the template in obviously template folder of subtheme, not a root one.
To set block visibilty with fine details in drupal 7, you need to install php filter which is part of drupal core but not enabled by default. And then off to write some code. First part of code uses node type to show, in this case hide block for particular content type and in the second, we check url argument, so we hide if for particaler views.
In views there is that part in contextual filters where you can set exception and it is by default set to "all" so if you want to show all the nodes which in a way disables this filter, you can use that. But it also adds itself to default bredcrumbs of your drupal installation.
Webform is great but fails sometimes at some basic things. Like you want to display description before the field, YOU CAN'T!! seems stupid but it is like that. You can do some nasty jquery overrides or CSS if you can (put both as absolute position and move them). But to do this "DRUPAL WAY" you need to make a custom preprocess function for this in your theme.
In drupal 6, there is a very nice module for flash content. Called Flash node http://drupal.org/project/flashnode which does everything you need for flash files swf (not flv or mp3, you need swf tools for that). But as I have games site I wanted to add unity files to my nodes.
There is a great module for auto tagging nodes with tags/terms for drupal 6, hopefully something similar will be for drupal 7 aswell http://drupal.org/project/autotag
Creating images in your templates in drupal 7 is somewhat different, so here is the code
Not sure if this is solved in drupal 7, but in drupal 6 you surely need to override
views-view-summary-unformatted.tpl.php with custom code. More on this you can find here
http://drupal.org/node/403012 but I did my own fork that looks best for my needs and think is the best out of those offered on link above. Here it is
Here is another drupal i18n beast. I have nice taxonomy summary for a category of shops. Which is attachment for a view, which passes term to it to filter category and show only shops that are in that category. Looks nice, it is moderately useful and seems it has never been done before.
If you created nodes and then enabled comments module after that you will have all those nodes without comments. Even if you enable comments for that content type, this will only help on the new nodes created. So to do that you would probably either run some code in phpmyadmin or make action to use with VBO module.
So for drupal 6 we go to phpmyadmin and run this query