Support » Plugin: CMB2 » Columns within row?

  • Resolved dkurth

    (@dkurth)


    Is there a way to creating a 2-column row, even with repeatable records?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    dkurth

    (@dkurth)

    that would be a bit more complicated in that i would not want to replicate all the fields rendering.

    any other thoughts ?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    dkurth

    (@dkurth)

    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>

    and this
    <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?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    dkurth

    (@dkurth)

    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.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Understood on your points as well, and thank you for the kind words.

    Wrote my own variation on this type of implementation.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Columns within row?’ is closed to new replies.