Views Developers

We encourage users to post events happening in the community to the community events group on https://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.

tejaspmehta's picture

How to create a view with node reference for CCK field ?

Hello,

I am using CCK + Views to create one application in D7. I have following cck.

Category
Sub Category (one field has node reference to Category)
Product (one field has node reference to Category and one field has node reference to Sub Category)

Read more
mtg.nampa.net's picture

New to Drupal, just want to create and use a database (table) on various pages with a single page to edit data

I'm new to Drupal. Sorry, if I'm in the wrong group, but I'm looking for the best direction.

I want to create a database table, edit from a single list, but display results on various pages. I've done various database programming before. Drupal has so many modules to choose from, and many do similar things.

I'm just a bit overwhelmed by the variety of directions I could proceed. I'm looking for opinions about modules suited to my needs.

    Thanks in advance, MTG
Read more
greta_drupal's picture

TIPS for managing high-volume CCK fields site (wiki style)?

Greetings.

I am building a wiki site, which will have many CCK fields. I'm already feeling exhausted at the prospect of paging through a mile-long list of CCK fields when constructing views, for example. As this is a membership-only site, even the user profile has some 30 fields.

My plan is to create a unique content type for each category/topic (15+). Each content type will contain several common fields, so I've planned for that reuse of fields. Several fields will be conditional fields, some "other" combo fields.

Read more
newindrupal's picture

Translate terms in Views

Sorry, if this question is duplicate, but i can't find an answer how to make Views translate terms in D7. With Views 3 disabled, terms are shown according to user language (from url), but when enabled - terms are shown only in default language...

Can this be solved without hacks? It seams like a very common need, so i feel strange that it doesn't work from the box..

Read more
awm's picture

Adding to one view a variable filter (a result from another view )

Here is what I need to do:
1.Check the Creation DATE of the most recent node (article)
2. Create a view that lists all the nodes such that node.created = Creation DATE.

In other words, I want to be able to pass a variable date to the filtering criteria. I know I could construct it from scratch using 2 db_query calls but I am looking for a more intuitive way that does not require a lot of customization.
I have been trying to use hook_view_query_alter and add_where() but with not much success because I do not want to create a module just to do this.

Read more
bartl's picture

How to use a custom table in Views?

I'm developing an auction site where people can bid on an item, which is implemented as a custom node type. So there should be at most a single value (the current bid) per user, per item.

I've tried out the Flag module, in particular with the "fieldable" patch, but it's not working very well and it's not going to get in a real release before the next major version (and the current major version is still in beta). So that's not really an option.

Read more
abendy's picture

Ajax-ified View creating problems with pager

I have a view which accepts taxonomy terms as arguments. I have accomplished the basic functionality using an ajax request.

Problem is, now the pager href is in the format of the ajax request (I'm guessing this is because the output came from that url) as opposed to: "?page=2" etc.

Does anyone have any tips on overcoming this? Cheers

Ajax code:


var container = $('#content-inner');

$('#block-menu-secondary-links a').bind('click', function(){
    var trigger = $(this);
    var arg = trigger.attr('title');

    doAjax(arg,container);
Read more
ocamp's picture

how to get the url of a node in a view to pass onto another view.

Hi, I posted this question on drupal forums but go no response, I then posted in the paid services forum and 3 people couldn't get it to work. So im hoping here will help.

Initially I had a view block that I would display on a node, the view had to arguments :
- Taxonomy Term ID (and children) from URL
- Node ID from URL

But now I'm trying to get the block to display on a view page.

The view page has filters/sort criteria, but only 1 item/node.

So i need to get the TID and NID from the url of the Node displayed in the view.

I was told this would work previously

Read more
ben.hamelin's picture

Theming the teaser display format - AJAX problem

I have two views.
One uses a relationship to display a node-referenced field of a node-referenced field.
The other view simply includes the node-reference field.

Both are set to display the field using the "teaser" format.

I have a custom node tpl file for the content type in question.

When I run a search (exposed form) on the first view, I lose the custom node tpl HTML output, and instead see the default teaser output.

Performing a similar exposed filter search on view #2 correctly maintains my custom TPL code.

Read more
Riya_Nithal's picture

Page View Caching Problem in drupal 7

I have a page View and I have been manipulating the data inside the view using ajax. The changes get reflected in the database. The problem is when the page is refreshed, it shows the old cached data, even though I have set caching 'None' in the View .Also, when the cache is flushed, the actual data is displayed and please note that the logged users are using this page view

Can someone help me?

The code for displaying the view is as follows:

function narrative_production_schedule_block_refresh($date) {
$date_str = strtotime($date);

Read more
gobinathm.php's picture

Any module for taxonomy terms follow / unfollow options

Hey friends,

Is there any module or options to make site users to follow or unfollow the taxonomy terms and based on the following terms, I have to send notification if any new post posted on that particular terms. Im using drupal 6.20

Thanks,

Gobi :)

Read more
ludo1960's picture

ical export to outlook always empty!

Hi there,

Got my Views Calendar (latest release for D6) working nicely http://ds4s.org/calendar-date

However when I click the ical export I always get an empty result set:

BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
X-WR-CALNAME: Calendar | ds4s.org
PRODID:-//Drupal iCal API//EN
END:VCALENDAR

Anyone got any ideas what I'm doing wrong?

Read more
greta_drupal's picture

CCK fields list in Views

Greetings.

I am working on a project wherein there will be TONS of cck fields. I am dreading scrolling through that massive list to build the many views needed. Is there some secret, backroom extension that can better manage that Content fields list in Views? Or suggestion about formatting the list -- perhaps to add more space inbetween items for easier reading?

Read more
davidarthur's picture

Panels with views, blocks vs panes

On a site with panels and views you have the option to create a display as a block or a pane.
What are the pros and cons? As far as I can see a block is more flexible than a pane and more universal, what was the reason for creating a pane display?

Kind Regards,
David

Read more
ben.hamelin's picture

template file output (unformatted row style) differs based on role

I have created a template file (views-view-unformatted--event-search--block-6.tpl.php) to control row output.
Row style is fields, style unformatted (see TPL name) and grouped by an ID field, which is shared by nodes in the view.

This is an events search where each node represents a single day occurrence for a given event, but event details are shared, hence the shared ID field.

My goal was to use the first and last day occurrence dates to build one output "row" that would contain both dates, and suppress any other results within that group.

Read more
gobinathm.php's picture

how to display Node Terms in block with tree structure in Drupal?

Hey guys,

I just enabled multiple terms for node creation and i just wanna display those mulitple terms as a tree sturctured in a block i tried with the following code

 if ( arg(0) == 'node' && is_numeric(arg(1)) ) {
 $node = node_load(arg(1));
 if (module_exists('taxonomy')) {
 $terms = taxonomy_link('taxonomy terms', $node);
 print theme('links', $terms, array('class' => 'node-terms'));
} else {
  print 'No associated categories.';
 }
 }

But no luck its just displaying all terms, But i have to display like below

 - parent term1 
Read more
awm's picture

Help Please

I always have questions and need to participate on the groups.drupal. But while I am at work, the site always trigger spam filter. I tried posting from several terminals and still having the problem. It looks like the ip address has been spammed or something. Please refer me to the appropriate where I can get this resolved. I am posting this from home...

Sorry for posting here....

Thank You,

Read more
tejaspmehta's picture

How to get Date of file uploaded in view ?

Hello All,

I have used content_profile module and based on that i have created view which display username and related fields. Now in this there is one field of files. User can upload unlimited number of files. I wanted to know what settings i should do to get date of posted file. I tried -delta option but there is nothing possible it just duplicate records.

After that i found in database that there are few tables which may help.
1. content_field_profile_files
2. files

Read more
Grzegorz Zbiński's picture

Views 2, xampp, Win7 x64 error 101 when edit view from list

I moved site from online (production) to local, made with xampp 1.7.4.
Everything works fine, but I can't edit any view from views list:
/admin/build/views/list
i.e. admin/build/views/edit/myviewname

Strange thing is that all views export, clone, and views itself (in blocks, pages, etc.) works good.

Apache logs brings nothing.

I'm confused.

Only Chrome browser said something like: page temporary unavailable, 101 (net::ERR_CONNECTION_RESET)

Does anyone meet this kind of problem?

Read more
theMusician's picture

Group and fields from custom module does not appear in Views

Hi,

I have been trying to implement a custom module that can use views to display data from a remote database. I have successfully created a module and enabled it, however I cannot access my data through views. This is using Drupal 6.2 and Views 2.12.

Here is what I have done:

I created a custom module called displayjobs and stored it in /sites/all/modules. This directory contains displayjobs.info, displayjobs.module, and displayjobs.views.inc.

Read more
Subscribe with RSS Syndicate content