Arguments

Events happening in the community are now at Drupal community events on www.drupal.org.
drupalprojects's picture

Views and Arguments again

HI

I'm about to finish writing a module allows to refine current view results by taxonomy terms, displayed in a separate block. Something like exposed filters does but with links instead of select and number of items after each link. To calculate a number of items that will be returned when user clicks on some term I'm using views_build_view function

<?php
views_build_view
('items', $default_view, null, false, 0, 0, 0, $exposed_filter_values);
?>

I'm also want to handle arguments here and pass it to the code below as third argument.

Read more
jiroro's picture

[question]about views arguments and filter

i want to pass node id into my views
and the filter of my views will use this node id to show something that i want.
this could be done in editview ??
or other better ways could do that?

Read more
edward.ishaq-gdo's picture

Views Arguments

hi ,
i am new to drupal , i have created a simple view to show a list of groups .
i wanted to relate this view to taxonomy, that is passed in the url.

what i did so far is :

<?php
function diary_views_tables() {

$tables["rc_og"] = array(

'name' => 'rc_og',
    'join'=>array(
        'left'=>array(
            'table'=>'node',
            'field'=>'nid'
        ),
        'right' => array(
    'field' => 'og_nid'
  ) 
    ),

    'name' => 'term_node',
    'join'=>array(
        'left'=>array(
            'table'=>'node',
            'field'=>'nid'
        ),
        'right' => array(
    'field' => 'nid'
Read more
Subscribe with RSS Syndicate content