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.
node_example.views.inc
While learning to build Drupal (vers 6) modules and learning to use Views (vers 2) I have created a node_example.views.inc file which gives views access to the node_example table.
node_example.module is one of the main demonstration programs used within Drupal api documentation for teaching people to create modules. node_example.module demonstrates how to create a module that provides a new node type. It adds a new table to the database. The new table contains a color, a quantity, nid and vid.
Read moreDefining custom views
Hello Views developers!
I read the mission statement of the group and I got some relief:
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.
I am developing views for my custom modules, but having problem with handlers. I can't figure out how to use those handlers.
I defined handlers but when I select the filter I added to the views it shows and error:
Expand CCK reference (user or node) fields in view
I thought this would be a very common subject, but I can't seem to find a good discussion on this one.
Assume I have these CCK node types,
Order ([nid], [title], [cck-uid-ref], [cck-bid-ref], ...[price])
Book ([nid], [title], [cck-pid-ref], [cck-aid-ref], ...)I have several Order nodes
nid, cck-uid, cck-bid, price
x, 1, 111, ..., $100- user 1 has ordered book 111
y, 1, 222, ... $200 -user 1 has ordered book 222
z, 2 111,... $100 -user 2 has ordered book 111
...Extending "Base Parent" Row Plugin Class; Class Not Found
When writing a row plugin module to extend the base parent row class, fatal error returned, stating: "Class 'views_plugin_row' not found . . ." On consultation with merlinofchaos (on IRC), referred to http://views-help.doc.logrus.com/help/views/api-plugins.
Read moreAttachment views and paging?
I'm writing a module that relies heavily on Views 2 to display data. One of the default page views i want to include is of the table style with a chart of the data "attached". I've written the style plugin to generate the chart via the Google charts API. The problem is, if I set up the page (table) display for paging, as I page through it, the attached chart view doesn't change. It always stays on page 1. How can I sync up attached displays with page displays?
Thanks!
Steve
Hyperlink from a grid view to a single-node view?
I have been thinking for a few days now over this problem and don't seem to find a solution:
I have a picture gallery, which I built using CCK+Imagefield+Views. Every picture is a node. I have a grid view that displays the thumbnails. I also have a view that displays a single node and has a pager to jump to the previous/next picture. My problem is that I need to connect those two views. I mean when a user clicks on a thumbnail, he/she should jump NOT directly to the node but to the node in the second view.
Read moreView of most recently voted upon posts
I am looking for a way to create a view of the the most recently voted upon posts. Any ideas how?
A view export would be nice!
Thanks in advance
Read moreLinks within views
I am looking to create a view where the view items link to a url created from a view.
eg.
I want to list all users blogs from their "Blog title" profile field, then link this to their blog "http://www.domain.com/username".
I want going to put code in a block, or a module to do this, but then I thought, Views should be able to do this!
Read moreAchieving an OR operator in Filters
Last updated by Alice Heaton on Mon, 2008-10-27 08:52
Problem
I want a View query to capture nodes that may have the following three combinations of taxonomy terms:
a, b
a, c
a, b, c
The resulting logic should return true when "(b OR c) AND a"
The closest I have been able to get with Views are the following results:
- Returns (a, b) and (a, b, c) combinations
- Returns (a, c) and (a, b, c) combinations
Can anyone point out how Views filters should be configured for the results I need? The tutorials for Views seem to be lacking a reasonable explanation of how filters operate.
Using Views
Read moreDrupal Views 2.0 UI disappointment: Cleverness versus Usability
There is something really nice about the new Views 2.0 GUI, and something really disappointing.
The really nice aspect is this: it appeals to the developer in me, because it's really clever.
The really disappointing aspect is this: it appeals to the developer in me, because it's really clever.
....
The developer in me is the part that feels motivated to contribute to open-source projects, out of a sense of idealism and a sense of independence and even a sense of pride in accomplishment.
Read moreTheming grid views in Drupal 6?
I am trying to create a view in Drupal 6 that displays a gallery-style page of picture thumbnails. Each displayed thumbnail goes with a set of links (actions for a picture). I need to display every group of picture-actions together, e.g. The picture is shown above and the actions below. Something like this:
<
pre>
| PICTURE1 | PICTURE2 | PICTURE3 |
| actions1 | actions2 | actions3 |
| PICTURE4 | PICTURE5 | PICTURE6 |
| actions4 | actions5 | actions6 |
Views Or - Creating alternatives in Views
Hi :)
The roadmap for the Views module include the possibility of having alternatives in the list of filters - in effect, an OR operator.
However, this functionality is not yet present (and won't be for 2.0), and so some time ago I wrote the Views Or module which adds this functionality : http://drupal.org/project/views_or
Read moreViews UI Permissions: your opinions (and patches)
Hi,
I created a new contrib called Views UI permissions. It lets you restrict access to users with the restricted views permissions to edit certain fields in the views interface. It creates a new views admin page (this was the easiest way to get rid of all other views operations) where people can edit existing views (not default views!). Administrators choose which fields(ets) are editable.
Read moreDo not show first item.
I have created a view in Views 2 as an attachment, I don't want to show the first item. Is this possible?
My use case is the home page of http://www.millwoodonline.co.uk (sorry about the theme, it's a rough draft)
Read moreList View Without the List? Simple View for d5!
How hard would it be to make a view that was like the list view, but instead of
<ul><li></li><ul>we simply do
<div id="xxx1" class="xxx"><div id="xxx1-1" class="xxx">data</div></div>?Im going to TRY and do this, its a Simple View! This would be an excellent learning tool for both v1 and v2, since it would be a simple module that does one simple task! But honestly I have no Idea how to start!
Read moreCreate a view of taxonomy linking to something else (photogallery)
Hello everybody,
I followed the tutorial on drupal.org about creating a photogallery with cck, views, image_field etc.
To have different photogalleries I set up different terms for the vocabulary "Photogallery-v".
Each terms is associated to an image trought the module "taxonomy image".
I created the views for the single galleries (actually is a parametric view) in the form /photogallery/
Now, i would like to create a block-page-something that will list the last galleries on the site, showing up the taxonomy associated image.
Read moreTrouble creating a custom sort function for a CCK type
Hello,
I'm trying to figure out the best way to use the Views (v1.x) API to create a custom sort function for a CCK type.
Here's what I have:
CCK fields:
- title (string)
- rating_a (int)
- rating_b (int)
- rating_c (int)
- rating_d (int)
I need to develop a way to sort the view by the average of a variable number of the "rating" CCK fields.
For example, if the user wants to sort the nodes only by "rating_a" and "rating_c", then the "order by" clause would look something like this:
Read moreCreating template for fields in colums
Hi all,
tried to figure out how to create a template to publish fields in different colums.
For each row there are several fields. Now I don't want to put them one after the other. Instead I want to put them in 3 colums. So it is a little bit like the already existing grid-view. But instead of displaying "rows" next by next I want to put fields in the colums.
Is there a way to do it?
Thought about creating my own template as a copy of the views-view-grid.tpl.php and putting the names of the fields in this directly. But did not work (as I don't know how to call the fields in a view).
Building a view from a different source (not Database)
Hi, everyone!
I'm doing a GSoC project to improve the apachesolr module (See here for details). Core of the project is to find a way to create a view showing results from a Solr search query. And this is where I could use some ideas from people more experienced with Views than me.
Read moreViews 2 RC release notes working post
Last updated by dmitrig01 on Wed, 2008-07-02 19:50
This is a wiki to try and get the community to help me out with the Views 2 RC announcement, which should be coming within days. Maybe hours. But probably days. This is cross-posted to Usability as suggested in #drupal IRC, as there are apparently folks that might help there.
Read more






