Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hello KK,
Happy with couch ;-)
I use repeatable regions with many elements. My colums are getting very small because there are too many elements. Can I place the URL input in the next row?

Here is my code:

Code: Select all
<cms:repeatable name='teaserimages'>
<cms:editable type='image' name='t_image' group='group_img1' />
<cms:editable type='text' label='Headline' name='t_headline' maxlength='18' />
<cms:editable type='text' label='Text' name='t_subline' maxlength='25' />
<cms:editable type='text' name='url_impression' label='URL' maxlength='280' input_width='200'/>
</cms:repeatable>


chichi
* * * * * * I LOVE COUCH CMS - flexible and straight forward * * * * * *
Hi Chichi, my advice would be to rewrite that part of the code that uses repeatable regions.
First of all, if you have many repeatables, it will soon become a mess in the admin panel.
And more importantly, everything will be much cleaner in the admin panel, you wont have that spacing problems you are talking about now.

Just use the standard procedure, separate clonable template defining all the editable regions, and then outputing with cms:pages tag.
@chichi,
Repeatable regions tend to get cramped up if the number of columns are many (this issue should be alleviated a little in the coming version where the Couch admin would be wider so allowing for more available space).

As @madebym suggested you could, if possible, use normal cloned pages where each page represents a row.

If not, you can try explicity setting the 'col_width' parameter for each region
<cms:repeatable name='teaserimages'>
<cms:editable type='image' name='t_image' group='group_img1' col_width='200' />
<cms:editable type='text' label='Headline' name='t_headline' maxlength='18' col_width='200' />
<cms:editable type='text' label='Text' name='t_subline' maxlength='25' col_width='200' />
<cms:editable type='text' name='url_impression' label='URL' maxlength='280' input_width='200' col_width='200' />
</cms:repeatable>

This will make each column wide enough for comfortable use (although now the user will have to scroll to reach the last regions).

Perhaps this will help.
Hello madebym,
thank you for your answer. Can you help me with a hint how to rewrite.
You say there are 3 steps for this:

- separate clonable template (example?!)
- defining all the editable regions (OK)
- outputing with cms:pages (I look for this in the Documentation)


@KK, thanks for the help.
I know cloned pages where each page represents a site.
I dont know cloned pages where each page represents a row
Can you show me?

I try to make a slider with image, headline, text and URL.
Is it working stringent to Portfolio Tutorial? http://www.couchcms.com/docs/tutorials/ ... folio.html
chichi
* * * * * * I LOVE COUCH CMS - flexible and straight forward * * * * * *
Create a clonable template, either on the existing page(where the slider is) or a separate one(you can name it slider.php). You do this at the top of the page, just below the PHP call require_once

Code: Select all
<cms:template title="Slider" clonable="1">
      Here you define all the editable regions, text, images, whatever.
</cms:template>


Then inside the slider, where the code for each individual slide would be, you put this. Please note that the master page is the one that you defined clonable, be it a separate page or your current one, where the slider is.

Code: Select all
   <cms:pages masterpage='slider.php'>
            Here is the code for individual slide. Just output the desired fields with <cms:show /> tag
       Example:
      <a href="<cms:show link_to_my_big_image />"
     <img src="<cms:show link_to_my_small_image />"
      </a>
         </cms:pages>


Of course, both link_to_my_big_image and link_to_my_small_image are defined in the cms:template tag

This is a quick overview of how it works, it is much better explained in the documantation. It is after all a core concept of Couch, I advise you to read it!
5 posts Page 1 of 1