views

New module: Views Two Column Table

For a project I've been working on recently, I needed the ability to have a two column table layout in Views. The idea was to place the field label in the first column, and the field data in the second. I had tried achieving the same layout using the unformatted default layout with some CSS, but was unable to get the label and field data to line up correctly, and so eventually wrote a views plugin to achieve the effect using tables.

The screenshot below shows what the final result looks like.

 

Creating A View To Display a Users Buddies to Other Users

I'm working on a site that will launch soon that features some social networking functionality, including friend lists. We are using the Buddylist2 module and while there are some default blocks for things like "My Buddies" that show a user their buddies, there was not a similar block that would show one user another user's buddies. We were able to create a custom view with the argument "Buddylist2: Nodes author is buddy of UID" that used the following custom argument handling code:
  • Continue reading
  • Customizing "View More" Links In Views 1 For Drupal 5

    A short, quick and easy tip for views theming and customization. To customize the text or the destination path/url of a 'view more' link in Views. Add this to template.php in your phptemplate theme and add cases.
    <?php
    /**
    * Override theme_views_more() to set custom link texts and destinations.
    * @param $path String
    *   The destination of the more link.
    */
    function _phptemplate_views_more($path) {
     
    $text = 'more';
      switch (
    $path) {
        case
    'foo/bar':
         
    $text = 'doh';
          break;
      }
      return
    "<div class='more-link'>" . l(t($text), $path) . "</div>";
    }
    ?>

    How to create a flexible events listing with views and panels 2 and CCK node reference

    Required modules: Panels 2 (which includes various sub modules), views, CCK: date, text, noderefence.
    Optional: pathauto, path, token

    Module Monday: Views TWO needs YOU

    Views 2 Alpha 2 has been released (and it kicks ass), but views is still many patches away from a stable fully-featured release. This is blocking many drupal 5 sites from upgrading to drupal 6. Earl Miles has laid the groundwork and is now calling on the community to help get views 2 out the door. Download or CVS-checkout views 2, install it, try to replicate your favorite view and see what features are missing or broken -- there are plenty.

    Module Mondays: Views Bulk Operations

    A couple of engineers at CivicActions were interested in the Views Bulk Operations module. Me too! So I checked it out. Easily installed, the most important bit I can tell you about is this:
    • clone the view that comes with views_bulk_operations (admin_content)
    • in the clone be sure to go to the Filters and select all content types for the Content Type filter (so you can see all nodes with the view)
    • click Save, then start messing with it!

    Robert Douglas on ViewsFastSearch

    Robert Douglas of Lullabot wrote a great tutorial on setting up Views Fast Search, a great module that speeds up search on your Drupal site (an oversimplification, but I'll let you read Robert's article for the details).

    Drupal Issue Question and Answer #138699

    #138699 from the tagadelic_views issue queue:

    Q: Is it possible for the landing page for the terms to be a view itself? so when a term is clicked out you could be taken to a sortable list?

    A: A simple question became a complicated answer... You've really asked two questions.

    For the first question, that is, to change the landing page for terms, you have the following options:

    Syndicate content