Posted by oskar_calvo on April 15, 2010 at 7:07pm
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
