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 display only those nodes created by users in thier account ?

Hello Everyone,

This sounds too basic question but i did not get solution from sometime so i am asking this one.

I need to create one view in which user can see only those nodes which are posted by himself. means there are 5 nodes in which 2 nodes created by user1 and 3 nodes created by user2 then when after login user1 check this view it will display those 2 nodes only which are posted by him only. And for user2 3 nodes will be displayed.

I did try few filters but didn't get any idea and even argument and relationship also didn't helped.

Thank you
Tejas Mehta

Read more
rcastro's picture

Drupal 6, Views 2 and CCK: Fields CONTENT not displayed

Hello,

I've started using Views(6.x-2.11) with CCK(6.x-2.8) and recently I've add to the Page content type the text field Teaser (basically a small description).
Next I've created a view where one of the fields is the Teaser. In the view I've Title, Body and Path that are core fields of Page and teaser that is an additional field added using CCK.
When I do the preview of the view, the Teaser is displayed correctly. But when I go to the frontpage, the view displays all Node fields (Title, Body and Path) and the Content field (Teaser) is missing.

Read more
potassiumchloride's picture

Is it possible to require an exposed filter be applied before the results of the view are displayed?

I apologize if this is answered elsewhere; I simply haven't been able to find it.

I have a view that will display ~5000 Nodes unless an exposed filter is applied, and this takes much longer to load than I would like. I would prefer it if a user sees zero Nodes listed until after a filter is selected. Is there a way to require a filter be applied in this case?

Read more
wjaspers's picture

Stumped: Get data from other table in hook_views_data()

I'm working on adding some functionality to a module I'd like to launch my company's site with, but it lacked views integration. I have almost all of the integration done, but I've hit a wall.

How do you grab a field from another table in hook_views_data()?
I've found documentation on how to create the relationship, but not how to alias the field or how to group the field as part of the current module.

Any suggestions? Thanks for your help!

Read more
HnLn's picture

displays all childs of a noderference parent parent child relation, is it possible with relationships ?

Hi there,

I have a set-up of a parent parent child relation where each item is a different content type: parent content type A, child content type B has a nodereference link to content type A, child content type C has a nodereference link to content type B.

example:

A
/ \
B B
/ \ \
C C C

Is it possible to display all content type C children of content type A using relationships ?

I created a custom argument handler for now, but want to know if I can do this from the views UI.

Tnx,

HnLn

Read more
meeks53113's picture

Views - Content and Links to display on front page

Good evening,

I have been trying to figure out views every evening for a couple of weeks. My website is 'contactipedia.com'.. Please feel free to check out what I have done so far. So far with Drupal I know how to create a static website. I can also create content.

Basically, guys, I want links with titles and content to appear down the page. Id like to have about 50 titles and 10 pieces of content per title. But first things first...

Read more
ocamp's picture

Is it possible to mix different view types and different display styles?

Hi, im trying to create a page which displays items in creation date order, so newest nodes will be displayed first.

I'm trying to list nodes using the node table and show several fields, but I would also like to list all comments in my view taken from the comment table and displayed as comments not fields.

If it was 2 views, I would create a node view set style to fields and choose what fields I want. Then another view select comments and choose to display as comments. and that would be it, But I need to mix the items together, in one view.

Is this possible at all?

Read more
potassiumchloride's picture

How can I create a view that relates two node types with shared taxonomy terms, and then display relevant content to a particular user?

I have two node types (node 1 and node 2) that share common taxonomy terms from the same vocabulary. These nodes also share one field in common. A set of users are related to node 2 content by node references.

I want to have a logged in user see the node 1 content that is relevant to them, given their relationship with multiple node 2s and the relevant taxonomy terms shared between node 1 and node 2.

Example:
taxonomy terms = region 1, region 2, region 3, etc.
shared field with limited values = value 4, value 5, value 6

Read more
tejaspmehta's picture

How to make Alphabetical listing ?

Hello Everyone,

I have created one view based on some filters, now its working fine.

As per requirement, i want to create like following

A | B | C | D | ............. | Y | Z

[view data here]

What i want to do is...
-> i have to create one line which contains alphabets.
-> If i click on "B" then all data started with 'B' will be displayed with or without pagination.

Can anyone provide idea that how to make this working ?

Thank you
Tejas Mehta

Read more
alb's picture

view is possible to use inner a node ?

generally with a view we list the nodes;
is possible to apply a view at the node's images, downloaded with imagefiled?

to apply a view when open (click) a node,
at all images download inner the node (the content of the field )

Read more
ben.hamelin's picture

Question about views_get_view() and set_display()

I'm hoping the Views experts out there can shed some light on the effect I'm noticing. I'll try to summarize as clearly and briefly as I can. Here goes:

THE PROBLEM: Needing to search the entire result set of a view that is paginated to determine if certain nodes were returned, then displaying information from those nodes on page 1 only, without affecting the remaining search results. The view has exposed filters for searching.

THE SOLUTION: Within my views "display" template file (views-view--search.tpl.php), I used the following code to obtain all results:

Read more
tejaspmehta's picture

How to seprate data generated by view output and display in specific format ?

Hello,

I am not totally newbie but beginner to views. Now i have one content type say contact details. It has First Name, Last Name, Address, Phone, Mobile field generated with CCK.

I started to build view and after some Relation and Arguments i have created view successfully in table format (Style of display).

It gives me output like following

First Name | Last Name | Address | Phone | Mobile
fdata1 | Ldata1 | Add1 | Ph1 | Mob1
fdata2 | Ldata2 | Add2 | Ph2 | Mob2
fdata3 | Ldata3 | Add3 | Ph3 | Mob3

Read more
stickgrinder's picture

How to develop a new relation?

Hello all, my first post in this group.

I'm sorry to ask such a noob question but is there any doc or resource that could explain me how to develop a view relation in my module?
I googled a lot but it seems to me that digging the views code is the only option to understand how to do this.

My need is to implement a node-to-node relation based on author ID. Here is the inspirational topic: http://groups.drupal.org/node/23319
I developed some tiny custom Drupal module before but never one for Views.

Many thanks to all.

Read more
ded's picture

Grouping View with links

Hi
I have an archive of events which I have to display in an academic year style way. ie events in 2008-2009, 2009-2010. I have a view which I have programmatically modified to display the event details in this way by passing parameters via the url ie /meetings/2008/2009 and this works well. What I want to do now is have another view which will generate a list of the links to the 'years' views ie

2008 - 2009 meetings => /meetings/2008/2009
2009 - 2010 meetings => /meetings/2009/2010

Read more
leketin's picture

Filter content by fields comparison

Hi everyone, noob here.

The problem is, I need to filter content by comparing two fields. There are two custom fields: 'Content: Unit' (specified when content page is created) and 'Profile: Unit: Unit No.' (specified by user in his profile). So I want to show users content that is only relevant to their 'unit'.

As far as I have learnt, it's impossible to implement this in Views UI, and I've already played with Arguments settings which gave me no result.

Any suggestions on how to do that?

Read more
Anonymous's picture

Views Slideshow with Rotator on Main Content

First question, aside from this page, where is a good place to go to ask questions about views slideshow usage? My second question is probably better posted somewhere else, but I don't know where to start as I'm new to the Drupal Views online community.

Read more
TuFrac's picture

to show taxonomy of several levels with views

Hello, I am new with views, I have read on realtionships, arguments, to be able to solve my problem, but already not the way that I must take, I hope that they could guide me, I have a taxonomy at 3 levels A, B, C at sublevels To-> A1, A2, A3 and inside these levels I have nodes, but B can have nodes directly, now well I created a sight that receives an argument that is the id of the term, but not as solving the problem of which if the term has subterms it shows me the subterms, but if the term has nodes, it shows me the nodes, I hope that they could give me some light in the way thank you, I'

Read more
freeform.steph's picture

Create a view to display content of a taxonomy term, which also displays the taxonomy term as the page title in the correct language

By default, taxonomy pages display content in chronological order, and this is not customizable unless you update the core module.

To get around this, create a view with taxonomy term as the argument, simple (if you're new to views and arguments, check-out this tutorial video: http://gotdrupal.com/videos/drupal-views-arguments).

In the argument settings, if you enter %1 as the title override, the page title will become the Taxonomy term of the taxonomy id argument, BUT this method fails to show the translated string if you're not viewing the page in the default language.

Read more
freeform.steph's picture

displaying multiple Views within Views with argument

Goal: to display multiple views within a view such that each row of the primary view passes a variable to the embedded views so that all of the content for 2 different content types can be displayed based on their relationship with the contents of the primary view.

Table display of the primary view would look something like:

[view1: row1 content [view2: content related to row1] [view3: content related to row1] ]
[view1: row2 content [view2: content related to row2] [view3: content related to row2] ]

Module used:
Views Custom Field: http://drupal.org/project/views_customfield

Read more
jdln's picture

Pass nodes in array on page into a views argument?

I have an array on my page that lists some node ID's. If I attach a view to this page, can I return those nodes in a view by using custom PHP code in an argument to ‘find’ this array?

I dont know a huge amount of PHP but using contemplate ive found the code that in a template file prints the node IDs.

<?php
 
foreach ($node->products as $myp_roducts) {
    print
$myp_roducts->nid;
  }
?>

Im trying to show other fields for these nodes. Some fields are in the array so i can print them with theming, but some fields that I need are not.

Read more
Subscribe with RSS Syndicate content