Views Developers

Events happening in the community are now at Drupal community events on www.drupal.org.
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.

mattmm's picture

Screencast: Setting up Views to build custom pages and access control

http://matthewm.org/screencast/drupal-views-build-custom-pages-access-control

As I await my induction into the Drupal Planet feed - here is my latest screencast.

Read more

Port Views to Drupal 7

To keep an overview of the patch at http://drupal.org/node/363410 ("Port Views to 7.x" issue), I've copied the module update instructions over here.

Please jump in, if you find something of the module update instructions you can help with. Only tick off items here, though, if a corresponding patch has been posted at http://drupal.org/node/363410. All ticked-off items should be accompanied by the patch number they were first fixed in, to make them easier to find.

Read more
markus_petrux's picture

Dynamic customization of views, but also need support for views ajax

Hi,

This is about a problem I have found when trying to write a feature for a module that needs to provide back reference views to nodes based on CCK node reference fields.

What I would like this to work is that the module provides a base default view that is used to provide all back refence views. This view can be modified to add more fields, change the style, add and/or expose filters, and so on. The user can also clone this view and assign the customized clone to any particular back reference relation.

Read more
jeff00seattle's picture

View 2 Arguments: Expected value is empty

Hi

As a default to a view, I have declared a view argument that refers to node-ID (nid) and argument %1

%1 == group_Tm_Pm_Project_Tasks: Task Node ID

I then select a field and check Output this field as a link.

The Link path: I provide is node/%1

However, when the check the link path, it is showing http://##.##.##.##/node/

Thereby, the expected value of nid is blank within %1

For what reason am I seeing this?

Thanks

Jeff in Seattle

Read more
jeff00seattle's picture

View 2 Filters: Criteria defined by PHP scripts?

Hi

Can a PHP script be assigned as a Filter criteria when one is within View Edit UI /admin/build/views/edit?

Or even establish a filter to be used by a view via some view hook()?

Thanks

Jeff in Seattle

Read more
reubenavery's picture

Having heck of a time getting plugin to work.

Hello all.
I'm having a good amount of difficulty in getting a style plugin to work and I was hoping I might get a little guidance from you good folks.

Working from the instructions at http://groups.drupal.org/node/10129, I put together the following.

first, in the module cp_helper.module:

<?php
function cp_helper_views_api() {
 
$api = array(
   
'api' => 2,
   
'path' => drupal_get_path('module', 'cp_helper').'/views'
 
);
  return
$api;
}
?>

I then created views/cp_helper.views.inc:
<?php
function cp_helper_views_plugins()
return array(
'row' => array(

Read more
stevepofd's picture

"Output this field as a link" You can use tokens but what about php?

Hello all,
I am curious if anyone has done something similar to this:
when creating the fields to use for my view, i want to rewrite the title link using both tokens and php.
i want to be able to check a condition (if taxonomy is present) and if so re-write that link accordingly.
is there anyone who has done this / knows if it is possible or knows of another module or patch that can solve this problem?

thanks in advance!

regards,
steve

ps... the attached image just shows the views UI with my available tokens, thought it might be on some use.

Read more
davidfells81@gmail.com's picture

Displaying grouped data with group label subheadings

I am trying to recreate this page in a Drupal site here.

Read more
davidfells81@gmail.com's picture

Creating a dropdown list of fields to sort by

I am currently rebuilding a site in Drupal, working on this page.

Original Page

New Page

Read more
robble's picture

Constraining fields which are not the "primary" node

I'm making a custom list of nodes and their comments. I'd like to be able to both constrain the number of nodes (easy: Items per page refers to nodes in this case) but also constrain the number of comments displayed per node (e.g. the 5 most recent).

Is there any way of doing this in Views? It's easy enough to make a view which has the comments in and an argument to provide the node id, were it possible to include such a view inside another view, for example.

Read more
prosk's picture

Does Views supports MIN(), MAX() in SELECT queries?

Hi,

Does views supports queries like for instance

Select node_revisions.vid, MAX(node_revisions.created) FROM node_revisions

which could return the last revision created for each node?

Thanks!

Read more
jeff00seattle's picture

Creating Sub-Sub-Tabs off of a Sub-Tab

Hi

Query: I am trying to do sub-sub-tabs off a sub-tab.

I think I am doing it correctly. The sub-sub-tab link paths are viable but they are not visible below its sub-tab.

Documentation: This discussion, I think, would be a good submission to documentation, if it would help.

  1. How DEEP of sub-tabbing can one do in Views 2?
  2. If on one-level of Sub-Tabbing, then can I make them deeper?
  3. I am beginning to wonder if this a theme-ing issue (I am using Zen-Classic).
Read more
laken's picture

Views 1: how to sort on fields from 2 tables?

I'm working on a D5 site (yes, unfortunately!) where we use taxonomy to create a "poor-man's-epublish" - basically a view of newsletter issues and articles under them. We have a vocabulary for "Newsletter issue" and just tag article nodes with the term of the issue, like "Fall 2008." Since there are other vocabularies on those nodes we're using the primary_term module to make the newletter issue the primary term.

It's all working great except for sorting: primary_term.module only implements views sorting by term id - it ignores the term weight:

Read more
rcrowther's picture

How to construct a child term query through the API?

Briefly, I know this sounds like a general query, which shouldn't be on this list. Two reasons,

1) This is for module integration, through the API.
2) Drupal core doesn't lean much towards trading with the Taxonomy, so we don't expect that of Views, either. We know we are wading in rather deep. Someone on the case could spare us trouble.

So, what are we up to? We've got our Views hooks up and running. We figured we wanted this query as a relationship. Views provides 'Parents' as a relationship, so 'Children' ties in with the developers, and also makes sense for a user.

Read more
rcrowther's picture

Help needed with constructing Views query and module integration

At least in part, the aims of this group seem to be concerned with gathering new ideas for Views from the stumbling of others. So I hope is that this is of interest (it is to me).

I'm new to Views. Very new. I spent 2 hrs with it yesterday evening. I didn't make much progress. Here's what I would like to do,

  • Construct a view of child terms, from a term.
    (note, term data in the results, not node data)

  • Make a generalized path. Along the lines of /child-terms/% (% being a term).
    (I know this kind of functionality is one of the stars of Views, but I like little steps)

Read more
jeff00seattle's picture

Views: Sort by multiple columns

Hi

I have a primary key that is multiple columns, e.g. Last and First Name.

Within hook_views_data() can I declare that I have such a sortable relation and thereby within a view sort by multiple columns?

Thanks

Jeff in Seattle

Read more
jeff00seattle's picture

Custom Sort View Handler is Ignored

Hi

I have read the link http://drupal.org/node/357079, but my custom sort handler is not getting called.

Implemented is the following empty sort handler. However, when I select the activated table-style column to sort, this sort handler is ignored.
<?php
class region_views_handler_sort extends views_handler_sort {
function query() {
parent::query();
drupal_set_message('region_id custom query()');
}

function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);

Read more
prosk's picture

List CCK Fields for a node revision

Hi all!

I would like to know if it is possible to list cck fields for each node revision, in order to see evolution of the cck fields in the node revision for instance.
It is already possible but with a node view type.
I would like to have this for node revision view type.

It could be great to implement the relationship in the cck's views integration.

Does somebody know if it is already available?

Thanks you

Read more
stevepofd's picture

creating a custom module to override the default exposed filter widget type?

Hello,
I'll start with the good ol' i'm new to drupal and creating custom modules spiel...
(btw, im using the most current versions of drupal and views)
What i need/have been trying to do is create a filter for a view that uses select dropdowns based on values that are collected from a cck text field.
(for example: a user adds a new node, there is a field called type and the user can enter whatever he wants. when the form is submitted, and he goes back to the list view, his entry in the type field now shows up in a select dropdown along with all of the other options that other users added. now he can filter the view with his own type entry.)

Read more
jeff00seattle's picture

View Handler methods "query()" and "pre_render()"

Hi

What is the purpose of the View handler method query()?

Using a skeleton class that traces the calling of the View handler methods, I see that method query() is called before method pre_render(). Is there an expected work flow relation between these two methods?

Thanks

Jeff in Seattle

Read more
Subscribe with RSS Syndicate content

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: