Views Developers
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.
Starting Views 2 Documentation
Creating this wiki page as a dumping ground for bits of documentation on Views2. It's totally a work in progress that can serve as a basis for future handbook pages.
Views Theming Documentation
This is an effort to get people in the community to do some work for me. Maybe I'm a bit lazy, but this is a piece of work that I've admitted I'm simply never going to get to. Yet it is needed.
This document is intended to be a comprehensive documented on theming Views. It should cover all of the basics, and it should also include tutorials. It really needs to be both.
I want to start with a topic list. I'm not even sure the best way to lay this out, so I'm going to start with the really obvious topics:
How to...
Hi! This is probably the wrong forum for this question (please let me know where I should post), but I'm confused...
I have a content type "committee". Each committee has a Forum associated with it using the Content Taxonomy module via a field called "field_committee_forum".
Freelance Drupal/PHP Developer | WindyCitizen.com
WindyCitizen is looking for a PHP developer to work on some innovative projects. Experience with Drupal, Javascript, Facebook Connect, and the Twitter API is recommended. This will be contract work with potential towards an in-house position. Chicago local preferred but telecommuters would work fine as well. Not looking for other businesses.
Please send a hello and code samples to brad@windycitizen.com with "PHP/Drupal dev" as the headline on the email.
See more about our company at www.windycitizen.com
Thanks!
Creating a "columnists" view...
Hi,
I'm trying to create a columnist view for a client, wherein each user's name and photo will appear along with their most recent columns (blog postings). It should look somewhat like this: http://www.denverpost.com/newscolumnists
I cannot figure how to leverage views to display more than one node title for each user. Any ideas? thanks.
Tony
On-the-fly remote image fetching
I've got a tricky problem, and I'm hoping folks more familiar with the CCK/Views ecosystem can help me formulate a plan of attack.
My module pulls listings from a remote database of real estate listings and imports them as nodes, with each field in the remote listing corresponding to a CCK field on the nodes, so the listings can easily be displayed, sorted and filtered with Views - it works pretty well. Each listing can also have several images, and I'd like to be able to use CCK and Views to display those images as well with full ImageCache magic.
Solved - Style plugin difficulties: empty text displayed when using custom style plugin
I'm trying to build a couple of style plugins for the lineage module to expand its usefulness, but I'm somewhat hindered by the fact that I have have no idea what I'm doing. I tried to use the helpful infos at http://groups.drupal.org/node/10129 as a guideline, and tried to make a clone of the basic list style plugin to start (since one of the plugins I want to create is a nested list).
Cannot join two fields from my table to one base table
I've created a module with a table that has the following fields
+------------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+------------------+------+-----+---------+-------+
| type | varchar(128) | NO | PRI | | |
| tid_group | int(10) unsigned | NO | PRI | 0 | |
| tid | int(10) unsigned | NO | PRI | 0 | |
| node_count | int(10) unsigned | NO | | 0 | |
+------------+------------------+------+-----+---------+-------+
Refresh view from block module via ajax (no exposed filter)
Hi there.
I'm working on an module which povides a form in a block to edit the filter settings of a view. I'm not using an exposed filter, because the form is updating itself via AHAH - selecting one or more categories in a multi select form populates another multi select box with items - and I don't know, if this would be possible with 'hook_form_alter()'.
attachment supposed to follow pager ?
Hi there,
I'm developping an advanced UI where I want to use the gmap module to show the same nodes as in the main view (but on map display). This seems to work, except when I start using the pager, the gmap attachment always shows the first 10 nodes. I actually get the same if I set the attachment to use HTML list as display (always the 10 first nodes, regardless of the pager status of the main view).
So, is this intended or am I missing something (inherit arguments and inherit exposed filters is turned on, but I have no pager reference in the attachment).
Tnx,
HnLn
views-slideshow-ddblock issue
EDIT (ISSUE SOLVED)
The views_slideshow_ddblock module is a plugin for the views_slideshow views style plugin.
I developed the views_slideshow_ddblock module but have an issue which I have no solution for. There is an issue created in the issue queue of the module and I have posted an issue in the development forum, but I don't have a solution yet.
Description setup:
Displaying multiple pages using one View page and one Panels 3 page.
Hi All
I created a content type 'Island Profile' (to store different related types of island specific information for numerous islands) using CCK. I am using Views to query the database, to output the different types of corresponding 'Island Profile' specific information, into numerous view panes within a single view for each island. Finally I am using Panels 3 to layout the created view panes for the 'Island Profile' content type into a panel page.
I have a few questions;
Question 1.
groupby doesn't works correctly?
hi guys
do you know why if i add a groupby user_uid for this query:
SELECT node.nid AS nid,
users.uid AS users_uid,
node.nid AS node_nid
FROM node node
INNER JOIN users users ON node.uid = users.uid
WHERE node.type in ('review')
ORDER BY node_nid DESChook_views_query_alter add all rows in group by?
SELECT node.nid AS nid,
users.uid AS users_uid,
node.nid AS node_nid
FROM node node
INNER JOIN users users ON node.uid = users.uid
WHERE node.type in ('review')
GROUP BY users_uid, nid, node_nid
ORDER BY node_nid DESCAn error occurred at /admin/build/views/
I get this error when I modify a view on Views module : An error occurred at /admin/build/views/
I need to solve this issue.
Panels to access drupal regions out of $content
Two days ago i was working on a page and introduced Panels 3. The page was designed without panels and already provided specific design regions such as the right and left column. So panels was ought to improve the situation...
But then suddenly it came clear there's some mismatch with those two.
If you have blocks enabled - panels will remain in the content part and your ability to modify the whole presentation is pretty limited.
New module to test out!
Hey CINDUG + Drupal crew!
I thought I would let you know that a cool new module: http://drupal.org/project/tvi (Taxonomy Views Integrator) has been released for your consideration. Please let me know what you think. What would you do differently?
The module is in Beta so I do not recommend using it in production however if it is as useful for others as it has been for us, then it will have lots of bright minds helping to make it better.
Thanks Adrian for your assistance and support.
Thanks Chris, for your advise and encouragement.
Cheers, Derek
Creating link with user name given uid
This must be easy, but I've spent much time with no joy. Feeling thick headed.
Got a table defined like this:
<?php
$schema['learningexercise_user_solutions'] = array(
'description' => t('Stores user\'s solutions.'),
'fields' => array(
'nid' => array(
'type' => 'int',
... ),
'vid' => array(
'type' => 'int',
... ),
'uid' => array(
'type' => 'int',
... ),
'solution' => array(
'description' => t('The text of the solution.'),
'type' => 'text',
... ),
...
?>Inserting fivestar widget in a view?
Hi -
So far I've implemented the advanced rating recipe with fivestar + votingapi + nodecomments. So far, I"ve been able to create a 'Store' object and configure cck, nodecomments & fivestar so a 'Review' object can be submitted and displayed after the main node content.
The 'Store' object has fivestar enabled and the 'Review' object has the fivestar widget as a cck field. So far so good.
Now, what I want to do (and this is where I'm running into problems) is to create a table view that will display the following fields:
Store name
Average rating 5star widget
Implicit Relationships
I'm just getting starting creating field, filter, etc handlers for Views for a project.
I've hit the point where I can't get further from existing examples and the API documentation.
I'm working with table, let's call it "Stuff"
Among the stored fields is a user ID.
I'd like to make it easy for someone creating a view of the table to show the username associated with that user ID.
I have absolutely no trouble creating a relationship handler that lets a user create a view that gives them access to all the fields in the user table. I suppose I could force the user to do that.
Specifying a vocabulary in a view field
I have a content type (job) that belongs to two vocabularies (location & division).
I'd like to build a view with the headers:
title | location | division
The problem that I'm running into is that I can't figure out how to select just the location vocabulary for just one column, using the supported taxonomy field types.
If I use the taxonomy:term field for my view, each node has two results, one for each term that it has.
Can anybody lend some guidance?
Much appreciated... :)









