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.

node_example.views.inc

Posted by ausvalue@drupal.org on December 3, 2008 at 8:21pm

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 more

Defining custom views

Posted by beautifulmind on November 29, 2008 at 9:52am

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:

Read more
7 comments Categories:

Expand CCK reference (user or node) fields in view

Posted by ubuntu on November 16, 2008 at 6:22pm

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
...
Read more

Extending "Base Parent" Row Plugin Class; Class Not Found

Posted by Morris Singer on November 14, 2008 at 10:58pm

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 more

Attachment views and paging?

Posted by karschsp on November 12, 2008 at 3:48am

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

Read more
3 comments Categories:

Hyperlink from a grid view to a single-node view?

Posted by kirilius on November 11, 2008 at 11:18pm

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 more

View of most recently voted upon posts

Posted by timmillwood on November 6, 2008 at 4:15pm

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 more
1 comment Categories: ,

Links within views

Posted by timmillwood on October 31, 2008 at 11:35am

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 more
14 comments Categories: ,

Achieving an OR operator in Filters

Posted by R.J. Steinert on October 24, 2008 at 5:42pm
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:

  1. Returns (a, b) and (a, b, c) combinations
  2. 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 more

Drupal Views 2.0 UI disappointment: Cleverness versus Usability

Posted by dreftymac@drupal.org on October 24, 2008 at 3:08am

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 more
37 comments Categories:

Theming grid views in Drupal 6?

Posted by kirilius on October 20, 2008 at 3:06am

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 |

Read more
1 comment Categories: , , ,

Views Or - Creating alternatives in Views

Posted by Alice Heaton on September 9, 2008 at 1:26pm

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 more
Categories:

Views UI Permissions: your opinions (and patches)

Posted by swentel on September 3, 2008 at 4:19pm

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 more

Do not show first item.

Posted by timmillwood on August 12, 2008 at 2:38pm

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 more

List View Without the List? Simple View for d5!

Posted by mgparisi on August 12, 2008 at 6:41am

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 more

Create a view of taxonomy linking to something else (photogallery)

Posted by alexic on July 10, 2008 at 2:04pm

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 more
Categories:

Trouble creating a custom sort function for a CCK type

Posted by ultimike on July 8, 2008 at 7:56pm

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 more
Categories: , ,

Creating template for fields in colums

Posted by vistree on July 7, 2008 at 4:19pm

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).

Read more

Building a view from a different source (not Database)

Posted by drunken monkey on July 1, 2008 at 3:34pm

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 more

Views 2 RC release notes working post

Posted by merlinofchaos on June 26, 2008 at 6:27am
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
Categories:
Subscribe with RSS Syndicate content

Views Developers

Group organizers

Group notifications

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

AltStyle によって変換されたページ (->オリジナル) /