Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi,
I need to add alot of items in single repeatable region.
For now I have only 5 items but final element will have around 10 items with richtext etc.

As you can see on screenshot it looks pretty bad.
There is any way to style it or change how it looks?
For example, every item in single line would be pretty nice.

Maybe couch have better way to achive that and I don't know that trick.

Attachments

Hi,

The docs on repeatable-regions (http://docs.couchcms.com/concepts/repea ... gions.html) actually mentions this problem and its solution -
Since all the editable regions forming the 'repeatable unit' appear side-by-side in a single row, you'll want to have more control over how wide individual region appears in a row.

For this purpose, all editable regions in Couch v1.3 (when being used within the repeatable tag) now support a col_width parameter that sets how wide the containing column of the region will be.
Additionally, the 'image' as well as the 'file' types also support a input_width parameter that sets the width of the textbox the two regions display.

As an example -
Code: Select all
<cms:repeatable name='my_multiple_images' >
    <cms:editable type='image' name='my_image' label='Photo' show_preview='1' preview_width='150' input_width='200' col_width='300' />
    <cms:editable type='nicedit' label='Description' name='my_desc' />
</cms:repeatable>

Hope it helps.
I see the setup perfect for clonable pages.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
3 posts Page 1 of 1