views2

26 Sep

Module Shout Out! Semantic Views

in css, module, views2

I am very, very impressed with Semantic Views http://drupal.org/project/semanticviews

Just because you CAN overwrite views template files... doesn't mean you always want to. Or I should say there are times when all of the mark-up just isn't needed, or just a little more would be nice. When Views 2 gave us the ability to re-write the markup of the field... I was very happy... Now, thanks to bangpound and a video (http://adaptivethemes.com/semantic-views-module-for-drupal-6-video-tutorial) by the incredible Jeff Burnz... I have a new fav module of the moment.

26 Jun

Views2 is Cool

in drupal, views2
I had a chance reciently to create views for a new site using the views2 module... And WOW! I am finding so many little 'thingees' in there that I have been really excited about. Here is the first one...

Adding without Templates

Perhpas the value of the field you want to output is just the name of an article. Nothing too fancy, but it sure would be nice if it were in quotes. Not so tough to do in views2... it's built in...

  1. You view needs to be using fields (obviously)
  2. You select the field you want to 'enhance'
18 Dec

Three Tweak-Thingees For View Carousel

in css, drupal, how to, theme, views, views2

I spent a good deal of time working with views carousel in Drupal 6 yesterday. There is a great screencast at Mustardseed Media to help you hit the ground running. Before starting, please remember that you need the jcarousel module if you want it to work at all.

Drupal Set Message - short

in drupal, views, views2

<?php
drupal_set_message
('<pre>' . var_export($row, true) . '</pre>');
?>

// for use with devel module.
dsm($form);

For any template that uses fields, the fields will be in array. In order to use this effectively, you will need to understand enough PHP to fetch data from an array. This is a place where the devel module can really help you, because you can use its dsm() function right in your template to see what variables it uses. There is an alternative to dsm() that works without devel module, but it's a bit longer to use.

For example, I placed the following code inside views-view-table.tmp.php.