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.

Grzegorz Zbiński's picture

How to embed view with 2 args (Views 2)?

I have a node type view default display with 2 args:
one is field with node reference, returning nid from referenced node,
second is nid which has exclusion

It works perfect, when added via panels.

I want to embed it in my tpl, and I got some problem:

print views_embed_view('my_view','default', $node->field_my_ref_field[0]['nid'], $node->nid);

is not working.
I've tried also (like in views ui preview):
print views_embed_view('my_view','default', $node->field_my_ref_field[0]['nid'].'/'.$node->nid);

but no luck - error. Read more
workinhard's picture

Advice on Drupal Modules...Module Advice Needed - Creating Reservation Site/Shopping Cart

Hi All,

I have ubercart and doing a shopping cart/reservation system online for courses. Course Operators page is built. I need advice on:

A module for a customised Search Function
The Scheduler or Availability Calendar for the course operator

Can UC Hotel Booking have elements adapted and used? Or, is this something for an experienced DBA?


Read more
haojiang's picture

introduce a high performance free hosting (for drupal)--sae---a GAE like China project , i just finished deploy drupal 6 there

ok , example first to prove that i am telling the truth : just feel its speed!

1.SAE: sina app engine , belong to (China), it's a service like google app engine ,but provide PHP hosting and mysql hosting and more! well , i think it's better than GAE, because i only know php but not python/java. It declare itself cloud service. And better than GAE, it use SVN.
2.Since it offer php and mysql hosting , drupal can be hosted. But a little hack to install.php , nothing more hack

Read more
moonshield's picture

Changing the way an exposed numeric (float) filter is displaying

Hello, I have a view filter form with a numeric field let's say price with a between operator I want to replace the regular min/max input fields with a list of checkboxes where I define a list of ranges.

Could someone please tell me where Can i start looking to do so?
any documentation examples ara welcome.
I am digging into views handlers can this be leading to a solution or it's a dead end?

Thanks a lot

Read more
supergogy's picture

Automatically fill combobox in views

I have created views with a node type (Property) that has term reference to vocabulary (Cities).
Vocabulary (Cities) has a terms in a hierarchical order (City-Street).

I need to do the views in which I have two combobox for vocabulary terms (City-Street) with the following behavior:

Read more
dazzler's picture

Isotope Module Developer - 4 Week Engagement | NAR

Employment type: 

One of the U.S.'s largest trade associations is seeking a skilled, highly-energetic and motivated person for an exciting and challenging project. This is a limited engagement of 4 weeks but will provide the opportunity to be engaged in the future. We are looking to implement a method for which to easily sort and filter content using the Isotope js framework.

The qualified person will have the following qualities:
- demonstrated capacity in Drupal module development
- jQuery/javascript prowess
- Views integration experience

Read more
TaraRowell's picture

Views 2 - Custom views filter handler - Labels not showing on options.

Hello group!

I have created a new views filter handler and it is working, but the labels on the values are missing.
I am sure that I have simply not called them, but i'm not sure how to do it. My file is preparing the values with this:

function get_value_options() {
if (isset($this->value_options)) {

$this->value_options = array();
$choices = array(
    "0" => array(
        "#title" => "title 1",
    "1" => array(
        "#title" => "title 2",
    "2" => array(
Read more
tinyvibes's picture

Theme/Views Modification | Music Label

Employment type: 

Hello! I have a small but probably pretty straightforward job for anyone looking for a quick pick up. Must be ready to start right away.

Read more
simonwidjaja's picture

Passing Arguments for a filter to a view (views 3) in code scenario?

Hi Drupal Friends,
I am working on a Views 3 Project and I'm stuck with this issue:

So far:
A Service-Method that reads a view and returns the results:
$products_result = views_get_view_result($viewName);

Now I want to add a filter (default or contextual???) for setting the maximum price (e.g. "maximum price": field_price < max_price)


Read more
tejaspmehta's picture

How to create a view with node reference for CCK field ?


I am using CCK + Views to create one application in D7. I have following cck.

Sub Category (one field has node reference to Category)
Product (one field has node reference to Category and one field has node reference to Sub Category)

Read more's picture

New to Drupal, just want to create and use a database (table) on various pages with a single page to edit data

I'm new to Drupal. Sorry, if I'm in the wrong group, but I'm looking for the best direction.

I want to create a database table, edit from a single list, but display results on various pages. I've done various database programming before. Drupal has so many modules to choose from, and many do similar things.

I'm just a bit overwhelmed by the variety of directions I could proceed. I'm looking for opinions about modules suited to my needs.

    Thanks in advance, MTG
Read more
greta_drupal's picture

TIPS for managing high-volume CCK fields site (wiki style)?


I am building a wiki site, which will have many CCK fields. I'm already feeling exhausted at the prospect of paging through a mile-long list of CCK fields when constructing views, for example. As this is a membership-only site, even the user profile has some 30 fields.

My plan is to create a unique content type for each category/topic (15+). Each content type will contain several common fields, so I've planned for that reuse of fields. Several fields will be conditional fields, some "other" combo fields.

Read more
newindrupal's picture

Translate terms in Views

Sorry, if this question is duplicate, but i can't find an answer how to make Views translate terms in D7. With Views 3 disabled, terms are shown according to user language (from url), but when enabled - terms are shown only in default language...

Can this be solved without hacks? It seams like a very common need, so i feel strange that it doesn't work from the box..

Read more
awm's picture

Adding to one view a variable filter (a result from another view )

Here is what I need to do:
1.Check the Creation DATE of the most recent node (article)
2. Create a view that lists all the nodes such that node.created = Creation DATE.

In other words, I want to be able to pass a variable date to the filtering criteria. I know I could construct it from scratch using 2 db_query calls but I am looking for a more intuitive way that does not require a lot of customization.
I have been trying to use hook_view_query_alter and add_where() but with not much success because I do not want to create a module just to do this.

Read more
bartl's picture

How to use a custom table in Views?

I'm developing an auction site where people can bid on an item, which is implemented as a custom node type. So there should be at most a single value (the current bid) per user, per item.

I've tried out the Flag module, in particular with the "fieldable" patch, but it's not working very well and it's not going to get in a real release before the next major version (and the current major version is still in beta). So that's not really an option.

Read more
abendy's picture

Ajax-ified View creating problems with pager

I have a view which accepts taxonomy terms as arguments. I have accomplished the basic functionality using an ajax request.

Problem is, now the pager href is in the format of the ajax request (I'm guessing this is because the output came from that url) as opposed to: "?page=2" etc.

Does anyone have any tips on overcoming this? Cheers

Ajax code:

var container = $('#content-inner');

$('#block-menu-secondary-links a').bind('click', function(){
    var trigger = $(this);
    var arg = trigger.attr('title');

Read more
ocamp's picture

how to get the url of a node in a view to pass onto another view.

Hi, I posted this question on drupal forums but go no response, I then posted in the paid services forum and 3 people couldn't get it to work. So im hoping here will help.

Initially I had a view block that I would display on a node, the view had to arguments :
- Taxonomy Term ID (and children) from URL
- Node ID from URL

But now I'm trying to get the block to display on a view page.

The view page has filters/sort criteria, but only 1 item/node.

So i need to get the TID and NID from the url of the Node displayed in the view.

I was told this would work previously

Read more
ben.hamelin's picture

Theming the teaser display format - AJAX problem

I have two views.
One uses a relationship to display a node-referenced field of a node-referenced field.
The other view simply includes the node-reference field.

Both are set to display the field using the "teaser" format.

I have a custom node tpl file for the content type in question.

When I run a search (exposed form) on the first view, I lose the custom node tpl HTML output, and instead see the default teaser output.

Performing a similar exposed filter search on view #2 correctly maintains my custom TPL code.

Read more
Riya_Nithal's picture

Page View Caching Problem in drupal 7

I have a page View and I have been manipulating the data inside the view using ajax. The changes get reflected in the database. The problem is when the page is refreshed, it shows the old cached data, even though I have set caching 'None' in the View .Also, when the cache is flushed, the actual data is displayed and please note that the logged users are using this page view

Can someone help me?

The code for displaying the view is as follows:

function narrative_production_schedule_block_refresh($date) {
$date_str = strtotime($date);

Read more
heliosmatheson's picture

Sr. Drupal development Lead | A Billion $ Consulting firm

Employment type: 
Full time
Not allowed

If salary range, skills and location are agreeable, please send your resume w/

A) Your current location: (city, state):
B) Your expected annual salary:
C) Your availability to start:
D) Your cell phone number:
E) What is your work authorization in USA?

Full time employment with Billion $ software projects consulting firm (Onsite only - no telecommute)
Jersey City, NJ
Salary range is US$ 100 - 110K ( no hourly option)

2 Open Source Architects to work out of Jersey City, NJ.
Someone with strong Drupal, HTML, CSS, Javascript background.

Read more
Subscribe with RSS Syndicate content