8

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.

11

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] – Artur Jan 2 '12 at 22:27
  • Fortunately, I have never been in your position !!!!! :D – Ashlar Jan 2 '12 at 22:38
  • Somehow I only believe in your original answer ;-) Thanks though! – Artur Jan 2 '12 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 :) – Francisco May 19 '15 at 20:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.