I am looking for a hook where I can dynamically change the table headers of a displayed Grid field in the frontend on the fly.

There are hooks for grid, grid_query and grid_save. So far in the documentation, I don't see anything where I can change the table headers output text.

Am I just missing something in these hooks or is there no way to change the table headers output other than editing the core files?


Yeah, the Grid-related hooks won't help you here. You probably want to look at either the channel_entries_row hook (for access to the raw data after it's been queried), or the template-post-parse hook (for access to the complete template after it's been parsed).

  • Nice. I will look into this and see if this works. – developarvin Jan 26 '14 at 22:51
  • Unfortunately, this didn't work. – developarvin Mar 4 '14 at 7:02

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.