Example: How to Display a Summary View as a Comma Separated List
Last modified: May 14, 2006 - 02:39
Sometimes the table is just not what you want there, but neither do you want one line per page. With this version of the summary you may want it embedded somewhere, because you may run into trouble with page-sizing. See the embedding example.
<?php
function phptemplate_views_summary_VIEWNAME($view, $type, $level, $nodes, $args) {
foreach ($nodes as $node) {
$item = views_get_summary_link($view->argument[$level]['type'], $node, $base);
}
$output = theme('links', ', ');
return $output;
}
?>