Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
I should probably use groups to solve this but, I have a large number of single line text fields for a single page site's content. The fields are in groups of three. I'd like, after each three, to simply add a little vertical space?

So instead of this:

F1_1
[ ]

F1_2
[ ]

F1_3
[ ]

F2_1
[ ]

It's ... (this is exciting isn't it! )

F1_1
[ ]

F1_2
[ ]

F1_3
[ ]


F2_1
[ ]



Is this possible?

TY
There could be several solutions.
One would be to assign specific CSS classes to the fields that need the separation using the 'class' param e.g. as follows -
Code: Select all
<cms:editable name='some_field' type='text'  class='foo bar' />

.. and then inject the required CSS styles for the classes using <cms:config_form_view> (see viewtopic.php?f=5&t=10241 if you need more info on customizing the admin-panel)
Code: Select all
<cms:config_form_view>
   
    <cms:style>
        .foo{
            ...
        }
    </cms:style>
   
</cms:config_form_view>

Hope this helps.
Perfect, thank you.
3 posts Page 1 of 1
cron