Hi, I have a "view" that returns node id's . I would like to use these as "links" in the list built by the view. Thanks, Brian _________________________________________________________________ Change the world with e-mail. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld
Brian Wolf wrote:
Hi,
I have a "view" that returns node id's . I would like to use these as "links" in the list built by the view.
Thanks, Brian
_________________________________________________________________ Change the world with e-mail. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld
Hi, You can use a phptemplate function to override list content. - Create a template.php file into your current theme - Add a function that override views_view_list Example : <?php function phptemplate_views_view_list($view, $nodes, $type) { $items = array(); foreach ($nodes as $node) { $data = "<div class='view-item ". views_css_safe('view-item-'. $view->name) ."'>"; $data .= l(" a link to ".$node->nid, 'node/'.$node->nid); $data .= "</div>\n"; $items[] = $data; } return theme('item_list', $items); } ?> G. Saint-Genest -- Gwenael Saint-Genest MAKINA CORPUS - www.makina-corpus.com 44 boulevard des Pas Enchantés FR-44230 Saint Sébastien sur Loire Tel : +33 (0) 2 40 94 96 08
participants (2)
-
Brian Wolf -
Saint-Genest Gwenael