Support » Plugin: Advanced Custom Fields: Table Field » Multiple headers

  • Resolved amandau

    (@amandau)


    Hi!

    I’m wondering if it’s possible to use multiple headers in the table? For example, I want a header row at the top of the table, and then I want another header row further down in the table.

    If this isn’t possible, can I give a field or a row a class name or similar? So that I can manually style them to look like headers.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Johann Heyne

    (@jonua)

    Hi,

    you can extend the PHP code, that generates the table html. In the foreach loop for body rows you can insert the table header row when ever you need it.

    Cheers,
    Johann

    amandau

    (@amandau)

    Hi and thanks for the quick answer,

    Ok, how would that work in the editor/frontend though?

    amandau

    (@amandau)

    Maybe I need to clarify.

    I don’t want the same headers to appear further down in the table, but new headers.

    Plugin Author Johann Heyne

    (@jonua)

    OK, I´ve got it.
    No, there is no way to set up a class or something else. I know, my plugin is very very basic. Thats why I´m developing a Pro version to solve a ton of such requests. But it is not ready yet because of some left challenges and finding time to do it.

    What you could do is filtering content, detecting keyword in the first field of a row to detect a header etc. Maybe lead [head] in the first cell of a header row, search for it in the foreach loop, provide header class to the row and remove [head] from the cells content. That is what I would do. It depends on who should us this stuff.

    Cheers
    Johann

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple headers’ is closed to new replies.