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.

How to list all nodes a user signed up for?

Posted by DrupalCuckoo on May 14, 2010 at 10:53am

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

Coding a Views Page Display and Views Block Display?

Posted by tomsherlock on May 13, 2010 at 10:21pm

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

Customizing Exposed Field

Posted by qjensen on May 12, 2010 at 10:56am

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

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

Posted by DrupalCuckoo on May 11, 2010 at 3:15pm

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

filter friends using views

Posted by vasan.85 on May 11, 2010 at 12:39pm

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

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

Posted by tribe_of_dan on May 10, 2010 at 3:35pm

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

Hacking an exported view to create a new custom view

Posted by mitz on May 9, 2010 at 1:53am

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

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

Posted by chowdah on May 2, 2010 at 8:34pm

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

how to custom the output

Posted by runeveryday on April 29, 2010 at 10:41am

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

Is it possible to dispaly form data with views ?

Posted by tejaspmehta on April 24, 2010 at 6:15am

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

t

Posted by ojardila on April 21, 2010 at 11:11pm

Problems with the output of a plugin style

Posted by ojardila on April 21, 2010 at 11:09pm

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

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

Posted by maddentim on April 21, 2010 at 2:40am

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

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

Posted by macuhail on April 20, 2010 at 2:01pm

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

Slow Queries... What are the options?

Posted by nimi on April 18, 2010 at 4:26pm

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

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

Posted by oskar_calvo on April 15, 2010 at 7:07pm

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

Flipped Table Style

Posted by nadam on April 11, 2010 at 6:28pm

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

Better Access Controls for Views

Posted by nsputnik on March 23, 2010 at 1:39am

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

"Advanced Search" fieldset inside exposed filter

Posted by shushu on March 22, 2010 at 8:51am

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

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

Posted by adityakg on March 21, 2010 at 12:43pm

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
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 によって変換されたページ (->オリジナル) /