custom views handlers

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
tms8707056's picture

Custom Views Handler Question

I am digging into the Views API to try and customize a filter handler. I am trying to filter a node reference field with multiple values. I have found that the many_to_one handler functions to filter items "such as terms (many terms per node) or roles (many roles per user)". This sounds like what I need since each of my nodes may contain multiple node references on the same field.

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
Alun's picture

Creating custom views sort handler

Hi guys & gals,

I've been playing around with Views and getting it integrated into my module recently. Everything is working great - I am managing a sports league, so can now get people to display their leagues using views. Most of the information is stored in databases for simple retrieval, but I had to create custom field handlers for some, as some of the fields do not have fields in the table - for example I have the following table structure to store a teams position in a league

Standings
won
lost
drawn
goals_for
goals_against
bonus_points

Read more
Subscribe with RSS Syndicate content