It’d likely all be a case of css mostly, and custom rendering of rows as needed, if you need to amend markup used to render them. I don’t believe we have anything for this specifically on the configuration side and available parameters.
that would be a bit more complicated in that i would not want to replicate all the fields rendering.
any other thoughts ?
No, sadly. One benefit is that the callbacks you define are re-usable. Define once, re-use as much as needed.
Beyond that, best answer I have still is utilize the markup that already exists and utilize perhaps CSS flexbox/grid.
Having done quite a bit of CSS, including changing CMB2 (hiding buttons, displaying others), it is only as good as the <div> within the code. The css is just the class what the DIV references, thus the code would have to be changed in order to define it..thus the problem.
Difference between this:
<div>THE ROW AND </DIV>
<div><div class="column1"><div class="column2"><div>
Seems like doing my own render, would mean redoing the render for all the fields as well..or am I missing something, that you know, that I do not?
Just the ones you want columns support for.
Alternative longer idea would be to create your own field types that support this for your use now and any future use.
Beyond that, we’re not able to support absolutely every request type that comes in, as much as we’d love to.
Understood. I appericate your help as it is.
As for my own rendering, been down that road for creating separate field types. If I were to ever go there again, it would be to write my own version of your system and that seems like a heavy road for some formatting issues.
Primary difference between what I would do and what you team has done, is I would not assume data should be placed in the WordPress database. I would also remove the need to import images via the WordPress media system…or at the very least, make it an option. Would be nice just to upload to a independent directory and not impact the WordPress database.
Your tool did the job for what needed, even if I had to find ways around it at times. I appreciate everything you have done.
Understood on your points as well, and thank you for the kind words.
- The topic ‘Columns within row?’ is closed to new replies.