Greetings!
There should be a way to state what is to be used for row headers.
When I try to create a view, I get this error on both preview and page view.
warning: Invalid argument supplied for foreach() in \sites\default\modules\views_hacks\views_flipped_table\views-flipped-table.tpl.php on line 40.
The error is rendered here:
<thead>
<tr class="<? echo $element; ?>">
<th>
</th>
<? //php print var_export($row);?>
<?php foreach($row['title'] as $title): ?>
<th>
<?php echo $title; ?>
</th>
<?php endforeach; ?>
</tr>
</thead>
When hacking the tpl and exporting $row, I get no 'title'.
When I added a node title to the view, everything worked.
However, forcing the use of a node title limits the (at least my) usage of this view style.
Comments
Comment #1
farald commentedChanging this to:
Will simply remove the table head if there are no title present.
It works at least for me, I am using the view to create a one-level table
Comment #2
farald commentedI figured out the easiest solution to this.
Just add the title, then ovveride it by changing the text in
"Rewrite the output of this field" option at the title field settings.
Comment #3
smoothify commentedI'm closing this as it seems to be fixed, and is for a different module....