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.
Events in Calendar Day View missing for anonymous users, but showing up for authenticated users
Hope this is the right place to post this, any suggestions as to where else to post or how to resolve the problem will be much appreciated...
I've built a calendar using views/date/cck/calendar, demo version here:
https://orestes.education.washington.edu/writing_center/writing_center_c...
Read moreUnique output for each item & css depending on output
Hello all,
I was wondering if anyone knew how to generate a unique output for each item, using the tpl files.
So it would be something like this:
<?php print item1; ?>
<?php print item2; ?
<?php print item3; ?>
etc.My second question is, is it possible add if statements to the content of fields for depending which css is to be used. For example, if the taxonomy term of the field is 'Apple', it must give it a green background. If the taxonomy term is 'Strawberry', is must give it a red background.
Thanks in advance for all your thoughts on this.
Read moreCustom View for SQL query
Hi,
Can any one help me to design a custom view for this query
"SELECT node_data_field_townuser_town.field_townuser_town_nid AS nid,
node_data_field_townuser_town.field_townuser_town_nid AS node_data_field_townuser_town_field_townuser_town_nid,
node.type AS node_type,
node.vid AS node_vid
FROM node node
LEFT JOIN content_type_relations node_data_field_townuser_user ON node.vid = node_data_field_townuser_user.vid
LEFT JOIN users users_node_data_field_townuser_user ON node_data_field_townuser_user.field_townuser_user_uid = users_node_data_field_townuser_user.uid
Issue with "Advanced - Nodes that can be referenced (View)"
Hi,
In CCK Node Reference i am using "Advanced - Nodes that can be referenced (View)" it shows the views
data exactly in the field, while i am saving node it saves the NODE ID specified in the VIEW but i need to store a value in the database instead of that nodeid could anyone please help me to sort out this issue??
Thanks,
Ajmal
how to get an average vote of a set of nodes in one view (not for each node in the view)?
Hi,
what I want to get is an average vote of a set of nodes, each of which has its own vote, contained in a view.
(I just searched and did not find a solution. The one available is just to display the votes for each node using fivestar in a view list. )
For example, if a view mainly contains three nodes, each having votes separately 3, 5, 4, then I hope when I display this view, besides listing the three nodes and their corresponding votes, there is another filed at the view's bottom showing the avarage vote: 3+5+4/3 = 4.
Is this possible to do with fivestar and view? and how?
Read moreUser Relationships has no way to show nodes written by currently logged in users friends?
Hey guys,
I'm developing a site where users can post links and follow eachother. I want to create a view that shows the latest links from users the currently logged in user is following.
I looked at the different friending modules, UR, friendlist, Flag friend for D6, and UR appeared to be the most supported and fully-featured.
I installed it, created a one-way relationship called "follow" and began following people to get some relationships in the DB. Then I integrated it into my theme.
Read moreHow to check the user who's update content?
Hi everybody,

In this picture, I want to change "By: admin" to "By: user, who update content".
How to I change it?
Read moreIs it bad to rely mainly on views?
With Views becoming more advanced and easier to use, and with the introduction of many helper modules for theming like Semantic Views, I find myself tending to rely mainly on views for full sites. Everything is a view: Front Page, Taxonomy Pages, Search Results. I'm wondering if this breaks Drupal core functionality.
Drupal is designed to display nodes as teasers and full nodes. With views I replace this mechanism. Of course I would still use "Promote to front Page" and "Sticky" to sort the view rows, but the outcome is just fields.
Read moreCascaded queries, dependent views, passing context around from view to view, ...
Hello all, and thanks for the great view module, especially to merlinofchaos.
I did some research and did not find a thing even remotely connected to this so I'll try to explain the problem and the few solutions I have in mind, hoping the experts here will be able to guide me toward means to realize them or advice me. Or plug my nose on a "fucking manual 'RTFM' way".
I thought this http://drupaleasy.com/blogs/ryanprice/2008/06/using-views-2-drupal-6-cre... and this thread http://groups.drupal.org/node/37414 could be related but I think my case is more general. Slap me if I am wrong. ;)
The problem :
Let's imagine we have a newspaper-like publication.
You have a top story, on top of the page, and then fixed topics (about cats, dogs, new news, old stories, whatever).
Every story is "tagged" in taxonomy, and can belong to several ones...
Of course, on the front page you want :
- the most recent story in the top story panel
- the most recent story in every topic in the fixed panel dedicated to that topic, but one that is NOT the top story and NOT already a frontage story for another topic (not already the most recent story for a "previously rendered" topic that is not the "top story")
Said more simply : a "story" should appear once and only once on the frontpage being as the top story or the featured story in a topic.
Read moreView that show category parent terms (from the taxonomy) if related to a node
Hi there,
I am new to this group and I say hello to everybody.
lso I am pretty new to Drupal, started in 2008 but
then left it for a year. Anyway here is my issue:
I build a view to show all parent category terms of a taxonomy.
What I wonder now is, how I configure such a view, that it only
lists terms that are related to nodes.
Is it clear what I mean? Because now, when I click on an item
from that list (generated by my view), which isn't
related to any node, it says:
"There are currently no posts in this category."
How can I list only terms that are related to a node?
Read moreFilter users by information from several content types?
Hi,
Read moreViews, Blocks, and Performance
Hi. I'm trying to understand a fairly fundamental Drupal architecture aspect. The oversimplified question is: When does a views query run? But the real scenario is this:
- I create a view with a block display type -- doesn't matter what it is.
- In Admin/Blocks, I enable that view to appear in my left sidebar.
So now the view will be active in some way for any node on my site, as long as that node can display a left sidebar.
3.. In Admin/Blocks, I configure that view to only appear on pages entitled 'whatever'
Read moreViews and filtering on referenced nodes
Hi all,
I am trying to build event system with relations. I couldnt figure out how can I filter by referenced nodes . Here we go.
I have two node types A and B.
A has many B's. B belongs to A. Also B has a datetime field. Lets we called that due date.
I want a get all A's if any B due date is certain date. I couldnt find how can I configure views for this query.
Thanks in advance.
Read moreHow do I: filter a view based on the CCK field value of the current node
So basically what I want to achieve is the following:
I have two content types, lets say a "story" and an "advertisement". I have appended two CCK fields (currently just text, but eventually locations) to my stories, while another CCK field (also currently just text, but eventually a location) is appended to my advertisement.
Read moreHow 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".
Read moreCreating 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.
Read moreSolved - 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).
Read moreCannot 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()'.





