views

13 Jul

When you need to get a 404... but instead you get a View.. what do you do?

in drupal, snippet, views

The site shows a View profile of bloggers and lives at the url "/blogs". Unfortunately, this save View became visible at "/blogs/{anyrandomword}". This was not the desired result. To further this specific instance, I realized that my path for the teaser view of each bloggers' post's was at the dynamic url of "/blogs/{username}".

My goal was to preserve my View of each bloggers' profile at "/blogs", allow the user teasers at "/blogs/{username}, and ensure that any random text or characters after "/blogs" would go to a 404 page.

05 May

Seven Drupal Modules that help Themers Shine

in drupal, module, theme, views, workflow
article image

Imagecache

project page
the world is a better place because of imagecache, imageAPI, and filefield image. Imagecache has more and more contributed/add-on modules... it is without a doubt the premier image handler in Drupal

Imagecache Profiles

project page
this little gem has saved me from delving into php code on so many occasions.
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.