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

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

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;
?>

I try to get the % of the second 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_BOOK ($term1,$term2);
}
return
$nodo;
?>

But the second tab give me the same % than the first tab.

There is anyway to put arguments in tabs when it's loaded a view?

Thanks

Oskar

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: