I have been playing with Drupal Views extensively for the last three months for a Website project. Whenever I overcome a hurdle with Views, I end up realizing how powerful and flexible is the Views module. It is just me who doesn’t know all the syntax to tap it’s power. Here is one such example. With about four lines of code, I was able to get rid of an annoyance in an otherwise neat-looking View.
For the Website project, I built a View to show the recent blog posts along with their title, author, post date and the number of comments. All looked fine expect the comments. It pinched me to see “0 comments”, in the View, against the posts, which did not have a comment. Read the rest of this entry »