Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi!

I have Owl slider on my website, and I want to be able to put images through Couch Admin. Should I use repeatable regions or what? I don't know the exact number of images, user should be able to import as many as he wants. Also, how can I set that all images are cropped at same dimensions, but when someone click on images, it opens in full dimensions?
According to their demo site http://owlgraphic.com/owlcarousel/demos/images.html
html looks like this:
Code: Select all
<div id="owl-demo" class="owl-carousel owl-theme">

  <div class="item"><img src="assets/fullimage1.jpg" alt="The Last of us"></div>
  <div class="item"><img src="assets/fullimage2.jpg" alt="GTA V"></div>
  <div class="item"><img src="assets/fullimage3.jpg" alt="Mirror Edge"></div>

</div>


Any approach can be used here - gallery, repeatable, 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
So these is my code:

Code: Select all
<cms:template title="Home page" >
   
    <cms:editable name="contact_group" label="Contact box" type="group" />
    <cms:editable name="box1_address" group="contact_group" label="Address" type="textarea" />
    <cms:editable name="box1_image" group="contact_group" label="Image" type="image" />
    <cms:editable name="box1_telephone" group="contact_group" label="Telephone" type="textarea" />

.......

<cms:repeatable name='what_others_say' label="What others say" >
    <cms:editable name="box15_text" label="Testimonial" type="text" />
    <cms:editable name="box15_text_name" label="Name" type="text" />
    <cms:editable name="box15_text_city" label="City" type="text" />
    </cms:repeatable>

</cms:template>


And I want to show content with this:

Code: Select all
<cms:show_repeatable 'what_others_say' >
                    <p class="testimonial-text"><cms:show box15_text /></p>
                    <p class="testimonial-person mt-lg"><span class="blue"><cms:show box15_text_name /></span>, <cms:show box15_text_city /></p>
                    </cms:show_repeatable>


But, the repeatable region doesn't appear in Couch admin.
Save and visit the template first, as superadmin. Then refresh this page in Couch and you'll see the repeatable. Your code is fine.

If you'd also want to set width for columns, then there is a setting for each editable inside the repeatable: col_width='200' . 200 is in pixels.
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
4 posts Page 1 of 1
cron