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.

Wassim Ghannoum's picture

Hello, i'm using drupal 6 and calendar 6.x-2.4, also i'm using the Calendar settings (Legend Terms to colorify my events based on their terms) i can give a color for each term by using calendar settings then Legend Terms, but i can't see this option in

Hello,

i'm using drupal 6 and calendar 6.x-2.4, also i'm using the Calendar settings (Legend Terms to colorify my events based on their terms)

i can give a color for each term by using calendar settings then Legend Terms, but i can't see this option in Year View..

it's only feasible in Month, Day, and Week view, but i need it in the Year view...

so how can i extend this feature to be done for the year-view?

Appreciate your help

Read more
Grzegorz Zbiński's picture

Field label reacting items count

I think that it would be great to make field label settings sensitive to items count. I don't know it is possible (I'm not dev) but it would be just great.

Example:

If I have multi value field (taxonomy, entity reference, etc.) it would be great if I can set up different behavior of label reacting for count of items it labeling. Right now we have simple option "Create label" with "Place colon after the label". My suggestion: (o) is radio switch.

(*) Simple label (default)
(o) Label reacting of field items

Label for 1 item: _____________
Label for many items: _____________

Read more
EmmyS's picture

Set alternate grouping field if relationship is not required (drupal 6, views 2)

I have a view that displays seminar sessions, grouped by track title. Track is a relationship. This displays like this:

Big Picture

  • Developing a Fully Integrated Path to Purchase Strategy
  • Insights-Driven Performance Model

where Big Picture is the track title. The problem is, there are a few keynote sessions that don't have a track name. Now, I know I can set the relationship to "not required", and that does display the records with no track, but it sticks them above, like this:

<

ul>

  • Measuring Shopper Marketing Performance
  • Read more
    laceysanderson's picture

    Programatically Remove Field from View (Views 2.x)

    I'm working on a module that needs to programatically remove a field from a view (both in the display and the query). The field needs to only be removed for their particular instance (ie: if they have two pages of the same view open and decide to remove a given field from one it should still be visible in the other page as well as any other users pages). Is this possible?

    Read more
    stevengm7's picture

    Custom search results

    Hi everyone

    I have been messing with Drupal and other CMSs for a while (3+ years). But I chose Drupal and stack with it since then no matter how hard the learning curve was.
    So far whenever I had issues either I figure it out or search Drupal.org site for any possible solutions time being sacrificed. But now I want to save time and be efficient expediting my projects getting direct help from all my groups. Most issues being discussed here are grabbing my attentions because they are very important that's why I joined so many groups.

    Read more
    asifroyal's picture

    Drupal 7 List nodes within the date range

    I am looking for a solution which displays node list within the date range. Requirement is to display events from today to next 6 days group by date. I have a content type "Agenda" with a date field enabled. So the display should look like:

    2 Jan 2012
    -- 8:00 AM Agenda A
    -- 9:00 AM Agenda B
    3 Jan 2012
    -- 8:00 AM Agenda C
    -- 9:00 AM Agenda D
    4 Jan 2012
    -- 8:00 AM Agenda..
    -- 9:00 AM Agenda..
    5 Jan 2012
    -- 8:00 AM Agenda..
    -- 9:00 AM Agenda..
    6 Jan 2012
    -- No events scheduled
    7 Jan 2012
    -- No events scheduled

    Read more
    ruess's picture

    How to filter only one user contextually

    Hi all,

    Stuck on an issue - hopefully simple and I'm just missing the boat here:

    I have a blog pane I'm using with organic groups. The contextual filter currently filters put all blog entries outside of the current OG - which is great. Yet now need to separate the OG managers' posts from the rest of the group's. I was able to create a separate pane and filter out all but the group managers' - success!

    Now however I'm having trouble getting a pane which displays everyone's posts EXCEPT for the group manager's.

    Read more
    ludo1960's picture

    Sort view before print

    Hello

    Got as far as running a query grabbing a bunch of nids and passing them to a view, thought I was doing well! However you guessed it, the sort order is wrong, here's my pseudo code:

    //query to grab the nids

    if (!empty($nodeids)) {
    $view='taxo_listing';
    foreach ($nodeids as $nid){
    print views_embed_view($view, block_1, $nid);
    }

    What I need to do is pre-build the view then run views_query_alter to sort the view before printing out the view.

    Read more
    rpeters's picture

    Creating a CCK field module

    I wanted to create CCK field module. I am supposing there would be special considerations for cck field modules than a regular stand alone module. Where would be a good place to point me to?

    Read more
    Cyclonecode's picture

    Support to toggle enabled state of Contextual Filters

    Hi, I was wondering if there are any plans on adding support for a user to enable/disable a contextual filter?

    Read more
    cmos's picture

    Views 3 virtual numeric field handler question.

    I've created a custom handler for a counter virtual field for my module but it seems that I am doing something wrong since I can't sort it nor filter on it as a numeric field.
    Any one can tell what I need to add to the query method in order to actually place the values in the tables for views to use it?

    <?php
    class mymodule_handler_field_count_for_interval extends views_handler_field_numeric {

    function mymodule_count($nid){
        $count=0;
        if (isset($this->view->filter['timestamp'])) {
            $filter_operator=strtoupper($this->view->filter['timestamp']->operator);
    
    Read more
    carn1x's picture

    Views Exposed Filter Groups

    I was wondering if anybody has come across anything that allows the setting of filter sets which can be turned on / off, or switched between, for instance:

    --- Node is Type Page
    --- Node is Promoted to Front Page
    OR
    --- Node is Type Gallery
    --- Node is Sticky

    It would be nice to be able to set some form of Filter Grouping, for instance:

    GroupA:
    --- Node is Type Page
    --- Node is Promoted to Front Page

    GroupB:
    --- Node is Type Gallery
    --- Node is Sticky

    Read more
    drupal7er's picture

    How to pass contextual filters programmatically through views_get_view_result()?

    In the live preview I can successfully pass the uid (the filter is set to uid) but doing that programmatically returns an empty array.

    $results = views_get_view_result( 'my_view', 'default', array( 1 ) );

    How should I pass the arguments here? Thanks.

    Read more
    Grzegorz Zbiński's picture

    How to embed view with 2 args (Views 2)?

    I have a node type view default display with 2 args:
    one is field with node reference, returning nid from referenced node,
    second is nid which has exclusion

    It works perfect, when added via panels.

    I want to embed it in my tpl, and I got some problem:

    <?php
    print views_embed_view('my_view','default', $node->field_my_ref_field[0]['nid'], $node->nid);
    ?>

    is not working.
    I've tried also (like in views ui preview):
    <?php
    print views_embed_view('my_view','default', $node->field_my_ref_field[0]['nid'].'/'.$node->nid);
    ?>

    but no luck - error. Read more
    Anonymous's picture

    Advice on Drupal Modules...Module Advice Needed - Creating Reservation Site/Shopping Cart

    Hi All,

    I have ubercart and doing a shopping cart/reservation system online for courses. Course Operators page is built. I need advice on:

    A module for a customised Search Function
    The Scheduler or Availability Calendar for the course operator

    Can UC Hotel Booking have elements adapted and used? Or, is this something for an experienced DBA?

    Thanks!

    Read more
    haojiang's picture

    introduce a high performance free hosting (for drupal)--sae---a GAE like China project , i just finished deploy drupal 6 there

    ok , example first to prove that i am telling the truth : http://trackself.sinaapp.com/ just feel its speed!

    [background:]
    1.SAE: sina app engine , belong to sina.com (China), it's a service like google app engine ,but provide PHP hosting and mysql hosting and more! well , i think it's better than GAE, because i only know php but not python/java. It declare itself cloud service. And better than GAE, it use SVN.
    2.Since it offer php and mysql hosting , drupal can be hosted. But a little hack to install.php , nothing more hack

    Read more
    moonshield's picture

    Changing the way an exposed numeric (float) filter is displaying

    Hello, I have a view filter form with a numeric field let's say price with a between operator I want to replace the regular min/max input fields with a list of checkboxes where I define a list of ranges.

    Could someone please tell me where Can i start looking to do so?
    any documentation examples ara welcome.
    I am digging into views handlers can this be leading to a solution or it's a dead end?

    Thanks a lot

    Read more
    supergogy's picture

    Automatically fill combobox in views

    I have created views with a node type (Property) that has term reference to vocabulary (Cities).
    Vocabulary (Cities) has a terms in a hierarchical order (City-Street).

    I need to do the views in which I have two combobox for vocabulary terms (City-Street) with the following behavior:

    Read more
    TaraRowell's picture

    Views 2 - Custom views filter handler - Labels not showing on options.

    Hello group!

    I have created a new views filter handler and it is working, but the labels on the values are missing.
    I am sure that I have simply not called them, but i'm not sure how to do it. My handler_filter.inc file is preparing the values with this:


    function get_value_options() {
    if (isset($this->value_options)) {
    return;
    }

    $this->value_options = array();
    $choices = array(
        "0" => array(
            "#title" => "title 1",
         ),
        "1" => array(
            "#title" => "title 2",
         ), 
        "2" => array(
    
    Read more
    simonwidjaja's picture

    Passing Arguments for a filter to a view (views 3) in code scenario?

    Hi Drupal Friends,
    I am working on a Views 3 Project and I'm stuck with this issue:

    So far:
    A Service-Method that reads a view and returns the results:
    $products_result = views_get_view_result($viewName);

    Goal:
    Now I want to add a filter (default or contextual???) for setting the maximum price (e.g. "maximum price": field_price < max_price)

    Problem:

    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