How exactly do I get a table header to appear above the table?
In views-view-table.tpl.php I can see a <thead>
section, but what causes it to actually get rendered?
Where do I specify the column header text?
I tried various options in the settings page, but to no avail.
1 Answer
The title can be defined from the Main views form. Each column of the table is associated with a field. If you select the field you can "add label" by selecting the checkbox and providing a name. The Label will appear in the header of the table.
-
Thanks JoeS, I knew this was something silly simple [blush] Commented Jan 2, 2012 at 22:27
-
-
Somehow I only believe in your original answer ;-) Thanks though! Commented Jan 2, 2012 at 22:52
-
I'm used to remove labels when setting up views. This is one of the few cases I needed to add them. Your solutions is pretty accurate to get table headers :) Commented May 19, 2015 at 20:26