Views Developers

This group should probably have more organizers. See documentation on this recommendation.

This group exists as a place for people interested in the group to talk about Views development; all development talk is encouraged here, from people who want to work on Views core to people who are interested in Views' API for their own modules. This is a good place to:

1) ask questions
2) talk about problems
3) propose ideas.
4) talk about views related projects.

This group is now unmoderated, and anyone can join at any time. Public posting of ideas is encouraged.

What I want most out of this is to keep track of what views related projects are going on and their status, and proposals for what people would like to see as Views moves forward.

Note: This is a working group. Do not post jobs here, you will lose your posting privileges entirely. Do not post support requests here; they will be deleted.

merlinofchaos's picture

My thanks

I just want to publically give thanks to some folks who've been absolute heroes in terms of helping to shape Views and ensure it becomes a very useful product.

In no particular order, beyond what my faulty memory puts them into:

  • KarenS
  • Jeff Eaton
  • Gordon Heydon
  • yched
  • Tobias Maier

Crap, I'm forgetting someone. But it's not worth not posting this, just cause my memory sucks.

But seriously, you guys have really, really helped, and I thank you very much for the time you've invested and the work you've done.

Read more
merlinofchaos's picture

CCK related Views work

Just putting in a pointer so that people who are not directly involved can see it:

This issue against CCK is helping to expand how CCK and Views interact, making CCK even more flexible in what it allows.

Read more
dado's picture

Views Fields and Performance

In this post
I describe my troubles with slow views. I learned that as I add fields to my views (esp. fields from different tables), queries slow down a lot. My solution was remove all fields from my views, then load them inside my theme_views_view_... function, using node_load(). This cut my page execution time from 6 seconds to 1 second.

Now I find that I am doing all my views this way, for performance optimization. I find it too expensive to add fields to my views (for CCK nodes anyway, which is ~all I am using).

So I wonder if CCK's views implementation could effectively do this in the background.

Read more
robertDouglass's picture

Is there a good way to get at the query or query object programmatically?

I want to get my hands on the query that gets called to generate a view. Possible after calling views_get_view?

Read more
KarenS's picture

Views Calc

I have a views_calc module in my sandbox that allows you to total a table of views fields across by row or down by columns. You can choose to SUM, COUNT, or AVERAGE the total. It includes a plugin theme that is more spreadsheet-like (right justifies numeric data, highlights and underlines the total columns, etc.)

I have it on a production site now at On that page you see a summary view of cck nodes that contain fishing tournament results. When you select one, you see a view filtered by the argument for that date that totals the number of fish caught and the weight.

Read more
raymondlee's picture

Views adaptation for non-nodes

I'm attempting to adapt the views module for non-nodes. Is this something that should even be attempted? Has anyone tried this?

I started by commenting out calls to db_rewrite_sql and changing the _views_query->query() method. This is quite hacky.

Any leads would be helpful.


Read more
eaton's picture

A challenge: first/next/prev/last navigation, with consistent URLs.

I've been working on a module for webcomic authors who want to leverage Drupal's tools for building their sites. I've created basic a basic 'browsing' system, not unlike book.module, but I'd like to give it more flexibility.

In a perfect world, I'd write a view that shows one comic at a time, and includes next/prev/last/etc controls in its footer. But that would lead to inconsistent URLs -- the default 'pager' is a less-than-ideal solution, I think.

Is anyone else interested in brainstorming ways to make this happen?

Read more
zacker's picture

Views + GMaps: a perfect match

Story: On Saturday night Drummy, Tony, and I went to Super Happy Dev House IX. I was a bit drunk. I bet Neil and Tony that I the "business guy" would beat them the "hackers" at hacking. My goal for the night was to integrate the gmaps module with views to allow users to create maps of any view.

I won handily:

Here is the theme code required to do this (add to template.php):

Read more
merlinofchaos's picture

Project Wanted

This is a really simple little module that probably is no more than 20 lines of code "Mark View Read".

It provides a menu_callback that provides a button to mark a view read, given the view name or vid as the argument. For bonus points, you could use hook_views_pre_view() to automatically add this button to any view that uses the unread filter.

Anybody up to spending a few hours doing this?

Read more
robertDouglass's picture

Adding to existing arrays?

Given this existing code:

function node_views_tables() {
  $tables['node'] = array(
    'name' => 'node',
    'provider' => 'internal', // won't show up in external list.
    'fields' => array(
      'title' => array(
        'name' => t('Node: Title'),
        'handler' => array(
          'views_handler_field_nodelink'           => t('Normal'),
          'views_handler_field_nodelink_with_mark' => t('With updated mark')
        'sortable' => true,
        'addlfields' => array('changed'),
        'help' => t('Display the title of the node.'),
Read more
Subscribe with RSS Syndicate content