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.

tasmaniaman's picture

Inserting content into a view via GET

Hi Everyone,

I'm using Views 2 and the great views_pdf module to create PDF documents using data stored in nodes and it works well.

I was wondering if there is a way to make data from variables on the address link available inside the view.

Basically a line like this generates a PDF for me:

I'd like to do something like this:

And have that variable "name" available to use in my view, i.e to print out on the PDF.

I've had a good hunt around and couldn't find an answer, hoping someone here may be able to help me

Read more
erinclerico's picture

Render events listing - multi-day events snag

I would like to do something similar to what the Calendar module does with events that span multiple days get extra results added in a row plugin when called by the the 'Calendar' style plugin.

So when a five-day event field is encountered in the results (a single entry with a start and end date that spans five days) - rather than display only the day that the event started (views default behavior) we will show a result for each of the five days in the range.

Read more
sah62's picture

Help Needed with DBTuner Explain Views

I've been looking at what it takes to create a Drupal 7 version of the DB Tuner module. I've run into some database issues and I'm not familiar enough with the D7 database and views APIs to know how to fix the issues. Could someone please take a look at this code and explain what needs to be done to get it working with D7?

function dbtuner_explain_get_views() {
// Disable Query Cache for this session temp

Read more
spessex's picture

Views Table - How to add a horizontal scroll bar?

I'm currently pulling my hair out trying to - with what I thought would be a simple fix - get a horizontal scroll bar to appear within a View's table.

I have a silly example just to see if anyone can help using Firebug or similar, as the production site is not yet available (I could then apply this fix to the real site).

The Views Table appears at under the title 'test-3' and just pulls in some random data to demonstrate how the table stretches beyond that which is expected.

Read more
Alfonso_MA's picture

Geofield module: modifying views filter

I have installed Geofield and Address Field, and I have created a content type using them.

Then I have created a view with a proximity filter, selecting 'Manually enter point as 'Source of Origin Point'.

It works fine, but I'd like to enter the source point through an AddressField instead lat/long fields.

I have been trying to create a new .inc file but I'm having problems because I have no experience with Views development.

If someone could provide me guidelines about that I will thank him.

Is modifying Geofield module the correct way or I have to create a new module?

Read more
mayur.pimple's picture

Views Style output

I want show item row wise.

First row display 1 item,
2nd row display 2 item,
3rd row display 3 item,
4rth row display 1 item.
5th row display 2 item,

Please help me

Read more
zterry95's picture

I would like to develop a views report module

I would like to develop a views report module, it allows user to make a report for numberic field. ignore the pager. and the exposed filter will take affect.

Any idea on this?

Thank you.

I know the views calc module can do this, but for report with complex relationship, there will be problem for views calc.

Read more
kwfinken's picture

Accessing an external database: Views not finding nid

I am attempting to link the views module to an external database. I have placed the following in hoursdb.module and have an associated file. When I create a new view, an error appears saying SQLSTATE[42S22]: Column not found: 1054 Unknown column 'times.nid' in 'field list'. (The attached image shows the SQL that the views module generated and the error.) What is views looking for and how do I either give it to views or get views to stop asking for it?

I did try adding a "fake" field in the module listing but that didn't work.

BTW, I don't have access to add any fields to the external database.


* @file
* Exposes the hours database to be used in a view.

Read more
mayur.pimple's picture

How to Sort by Relationship in views


I want Custom sort by relationship in views.
If my friends have 3 node then display first these nodes and after that other.
what is flow to achive these.

Read more
frankyn's picture

Extending Services Views

Hi Everyone,

I'm new to drupal groups and I'm hoping this is a good place for this.

I'm attempting to add additional functionality to the Services Views Module. The reason why I'm posting inside the Views Developers group, is to get more information about adding attributes into a Field within Views UI.

I'm attempting to give attributes to a Field to set the max_length, type, etc... for a certain field. Maybe there is already something like this, I'm not completely sure and need some guidance.

Thank you
Frank N.

Read more
wipeout_dude's picture

Filter views by comparing two fields?


I have a content type with two date fields both with start and end dates..

I need to create a view filter that if the start date and time of fieldA is more than 15 minutes before or after the start date and time of FieldB then show it in the view..

Obviously views can compare dates to "now" or now relative to a time period but I can't see a way for views to filter based on the comparison of the value of two fields..

Anyone have any ideas?


Read more
spessex's picture

How can I easily and frequently distribute links to URL's so only selected users can view the link?

I have a site where I need to frequently send URL links to select users at any given time. These links are to surveys, so essentially the survey link at the time can only be passed to users that fit/screen to the requirement.

At the moment I have a View where I can easily screen the users using exposed filters but cannot work out how to send these users the specific URL link? Additionally, after any given time the URL link will become redundant so I then need to be able to remove the link for their View when this happens (I don't want them to see expired links).

Read more
spessex's picture

Views - is it possible to pull in user's passwords?


Is it possible to pull Users password's into a Drupal View?

I've checked the 'User' fields in the Views but cannot seem to see anywhere that mentions passwords?

I just need it for an overall administration view.

Any help would be greatly appreciated.


Read more
spessex's picture

Views - Aggregate Sum - Help!


I have a very simple view to test the 'SUM' aggregation type but I cannot get it to work. All I am trying to do is sum the values of two content types decimal fields.

I have one column with content title and one column with value.

Please note I have 'aggregate' on, I have no sort criteria and no relationships or contexts to make things easier, the title column is on aggregation type 'group results together' and the value aggregation type 'SUM' with Group Column 'Value'.

No matter what I do I cannot get the column to sum?

Please note COUNT works.

Read more
spessex's picture

Views - how to pull a 'Node References' associated fields & data whilst it sits in a 'Field Collection'?


If anyone can advise it would be most appreciated as I've been stuck on this for over 48 hours.

I can pull fields and their associated data into a View from two content types using a 'node reference' field type and specifying a 'relationship' within the View but for some reason I cannot appear to do this when the 'node reference field' is contained within a Field Collection. In this instance all it will do is bring back the field titles but without the data.

So to be clear, I have the following:

  • a 'Client Information' content type (ct);
  • a 'Job' ct;
Read more
spessex's picture

How to show a view in the 'edit' page of a content type?

Does anyone know of a way to show a 'view' in the edit page of a content type (I can show it in the usual view page i.e. not edit)?

Basically when the user is editing the content type he needs to see the view (by somehow adding it as a field type?).

Any help would be most appreciated.

Thank you


Read more
sumitmadan's picture

Add Exposed filter Multiple times on a Single Page.

I am using Homebox module for creating a Dashboard. I created a view as block so user can add it in their Dashboard multiple times. I added the Exposed filter of taxonomy terms and I entered the choices of user in my custom table. Now user can add same block with different choices. My questions is how to manage different choices with blocks, exposed filter have same id on each occurrences.

Read more
spessex's picture

MAMP - PHP Version - 5.4.4 causing a lot of problems

Hi everyone

Just thought I'd make a quick post for any fellow newbies out there just incase they're experiencing any similar problems.

Read more
MarketStone's picture

User tab view

i know i can create a view tab in the user profile area with /user/%/workshop1 as the path. Is it possible to put views inside that tab?

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:

Hot content this week