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.

DrupalCuckoo's picture

How to list all nodes a user signed up for?

hi,

I'm trying to show all nodes (events) a user signed up for. Right now, a user can only see signed up nodes if he's the creator of the node. When a user signs up for a node which was created by an different user, it doesn't show up in the list. I've attached an image of my current views configuration.

I'm using CCK+Date+Calendar modules to create calendars.

Read more
TomSherlock's picture

Coding a Views Page Display and Views Block Display?

I'm trying to figure out how to code a Views page display. I've managed to create a Views Default display.

I've looked at:

I'm confused.

It appears that if i want to create a default view I should implement the method or hook mymodule_views_default_views()
place the exported view in the method and wrap it with

Read more
qjensen's picture

Customizing Exposed Field

I am very new to working with the Views API and I can't seem to figure out how to customize the display of an exposed field in a view.

I have a CCK field that I have exposed, but instead of leaving it as a bare text field I would like to replace it with a select that includes the items actually in the db.

For example, I have a field for Fruit. That could be any kind of fruit and not every fruit is in in the db, so I want to create a select list that would allow the user to select from a list of fruit that has been entered in the system.

Read more
DrupalCuckoo's picture

How to redirect a view to a panel page using the "more link" function of views?

hi,

I'm having some trouble with Views and Panels (I'm using the latest version of both modules).

I've created a view with two "content pane" displays to list some sort of content (let's say blog entries). The first "content pane" displays the first 5 blog entries of a given user. The second "content pane" displays all blog entries of a given user. To get from the first "content pane" to the second I want to provide a "more" link on the first one.

Read more
vasan.85's picture

filter friends using views

hi,

i need to filter the friends which based on the logged user.(i.e)

A has B, C and E are friends.
B has a and c only friends.

when A log into site means
it shows friends B,C,E

when B log into site means
it shows A and C only.

i am user user relationship module for friends addition. Also i need to display friends in gmap.by using views how i do this. if any one knows plz share with me.

thanks

Read more
tribe_of_dan's picture

Making Groups show in "Advanced - Nodes that can be referenced"

I have an 'Event' content type that uses node reference to link 'Person' who attended that event.

When I edit the event, the nodereference field shows all 'Person' content types (a large list and growing). So I created a View to filter the options of who could attend which events. I want to break down this long list of people into Groups.

I tried to achieve this in two ways...

Read more
mitz's picture

Hacking an exported view to create a new custom view

Hi,

I was working with CiviCRM v3.1.2 which now ships with a CiviEvents calendar view. I would like to make a similar view based on it but using CiviCRM Activities instead, with a relationship that would allow one to filter by logged-in user. I was wondering if I could export the civicrm_events view, paste it into my text editor for editing, then import my new view when finished.

Read more
chowdah's picture

How to create a Panel with an exposed form created with a View

Is this even possible?

I am using panels 6.x-3.x-dev and the latest Views module. I am trying to make a directory search page with Panels and am having problems with the output of a form that I am creating by exposing the input with Views. The page would be made up of two panels - one a glossarized directory listing (this works fine in the panel), the other an exposed form for a proximity search and a taxonomy filter. I have the View created and it works fine - the view exists with display types 'Page' and 'Content Pane'. Both outputs work fine in the Views preview, and the Page display type works when I visit the page's set url.

When I try to add either of the View's outputs [page or content pane] in a panel, nothing displays when I preview the panel or visit the panel's url. When I add the page type to the panel, I use the "Override URL:" option to enter the path of the Panel Page.

Read more
runeveryday's picture

how to custom the output

i used CCK module creating a content type, which has ten fields, now i use views 2 to output them, but the annoything is all the fiels and it's value are in one column,now i want to custom the output to let the result display in two columns,on the left,which will show 5 fields and it's value, on the right, which show the left. i know i should hack it in the Row style output: file ,but i don't know how to do it,any tips would be appreciated

Read more
tejaspmehta's picture

Is it possible to dispaly form data with views ?

Hello Everyone,

I have started using drupal from few days. Based on requirement i found some modules and use them in websites. Currently i am working on one website. At that time i found views and it is a charming module which helps a lot to display records or create reports.

Now i have different type of question. Is it possible to display text box or select area or check box or radio button in view ?

Read more
ojardila's picture

t

ojardila's picture

Problems with the output of a plugin style

Hello, I am currently working on a plugin style but I had some problems.

(views-view-estilo.tpl.php)

<div class="item-list views-accordion <?php print $views_estilo_id ?>">
  <?php if (!empty($title)): ?>
    <h3 class="<?php print $views_estilo_id ?>"><?php print $title; ?></h3>
  <?php endif; ?>
 
  <div id="slideshow">
    <?php foreach ($rows as $id => $row): ?>
      <?php print $row ?>
    <?php endforeach; ?>
  </div>
</div>

When I print the variable $ row I write the type fields:

output:

<

div class="views-field-title">

Read more
maddentim's picture

How to link block display's "more" link to panel page instead of view page

I am building a site with most content displayed through panels pages. The home page has a pane with a views block with a short list of content. I would like the "more" link to go to a panels page that contents the full page view of this particular content but the more link will only link to the view's page display. I suppose I could just put a footer in the block with a manual link... Is that the best way? Thanks.

Read more
macuhail's picture

How to substitute an argument variable in an alternate views SQL query

I am attempting to use an alternate query for a view that exposes data entered via a cck type that uses the experimental multigroup module. The only way I have been able to get the view to work properly is to add a custom where clause.

The problem is that I have been using a preview SQL query to test the where clause. The SQL has the arguments "hard coded". For example: one of the views generated WHERE clauses looks something like: AND (term_data_1__term_data.name = 'product1').

Instead of "product1", I need to put a variable for $args[3]. Any idea on how to do this?

Read more
nimi's picture

Slow Queries... What are the options?

Hello everyone,

I built I a scheduel for my university that is based on views and the cck matrix fields.
There are many fields and it takes 18 seconds to load the page!

The devel module shows the the cck matrix fields are the ones slowing everything down.

Is there anyway to speed things up?

Many thanks,
Nimi.

Read more
oskar_calvo's picture

It's posible to create tabs with diferents arguments for every one of them?

Hello.

I'm trying to build a view with four tabs, my idea is that every tab should have it's own url. I'm trying something like this:
domain.com/path/%/tab1
domain.com/path/%/tab2
domain.com/path/%/tab3

I try to get the % of the first tab from this code/steps:
node: nid
Provide default argument:
php code

<?php
if (arg(0)=='node' && is_numeric (arg(1))){
$term1 = taxonomy_get_tid_by_nid(arg(1),1);
$term2 = taxonomy_get_tid_by_nid(arg(1),2);
$nodo = node_get_nid_of_JUEGO ($term1,$term2);
}
return
$nodo;
?>
Read more
nadam's picture

Flipped Table Style

Hi,

I'm trying to create a style plugin to flip the rows and columns of a table in views 2 Drupal 6. I have previously made this using theming, but then it will affect all tables which is not what I want.

When doing this with theming I just created a views-view-table.tpl.php as described here. However, when trying to make the same thing in a style plugin I don't get the $header variable. What should I use instead to get the column headers that I now want to display in the first column of the flipped table? Or should I use another approach?

Thanks,

Read more
nsputnik's picture

Better Access Controls for Views

I have the need for a site where I can define access to individual nodes by user. In this scenario, access by permission or roles is not finite enough. Node_Access has this ability. But when I want to create a view to display the node available to a given user, View's Access setting overrides the permission and roles settings in Node_Access. There is a similar module, Content Access that tries to solve a similar problem.

Read more
shushu's picture

"Advanced Search" fieldset inside exposed filter

I was looking for a simple way to filter a view, and on the other hand allow more advanced filtering.
I didn't want fancy javascript games, nor to split between the views (simple vs. advanced).

My solution combined naming the exposed filters with a given prefix, splitting the widgets into two arrays in the preprocess function, and changing the theme of the exposed view by putting the advanced widgets in a fieldset.

Read more
adityakg's picture

Integrating Views output into Feeds Module for further processing - as suggested by @dereine

Hi all!

Overview:

This project intends to enable Drupal importing data from various existing WebAPIs (e.g. Twitter, Facebook, XML, RDF, etc) and put it into Drupal's element (nodes, users, database data, etc..)

This is achieved by utilizing Views and Feeds module in Drupal.

The process of importing external data from WebAPIs will be:
external WebAPIs -> Views -> Feeds -> Drupal (nodes, users, database data, etc..)

About Me:

Read more
Subscribe with RSS Syndicate content

Views Developers

Group organizers

Group notifications

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

Hot content this week