Forum for discussing general topics related to Couch.
8 posts Page 1 of 1
Hello everyone, I'm a novice to the use of couch cms.
I need to be able to change images on a website, consisting of only one page. But despite my efforts and reading the tutorial, I don't get over it. Can anyone suggest me how to do it?
the site is https://pasticcerialacuccagna.com/vic/
Thank you
(Sorry for bad English)
Hi,

Could you please let us know more about how exactly you tried to change the images?
Please post the code you have used.

Thanks.
Hi thanks for the reply.
I followed the tutorial portfolio. As it is a slideshow on a single page web, I don't know if I should define "clonable".
I started by writing the code below, but on the administrative side, I have the page and not what I see in the tutorial (i.e. the form to enter the necessary data)


Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='Slideshow'>
<cms:editable name='group_img1' label='First Image' desc='First image' type='Group' />
<cms:editable
   name='image_1'
   label='Image 1'
   desc='Carica immagine'
   crop='1'
   width='1298'
   height='660'
   group='group_img1'
   type='image'
/>   
<cms:editable   
   name='thumb'
   label='Image Thumbnail'
   desc='Thumbnail prima immagine'
   width='223'
   height='113'
   show_preview='1'
   assoc_field='image_1'
   group='group_img1'
   type='thumbnail'
/>
<cms:editable
   name='Titolo_immagine_1'
   label='Titolo immagine 1'
   desc='inserisci titolo immagine'
   group='group_img1'
   type='text'
/>   
   
</cms:template>


The html code of the slideshow (I haven't entered the tags yet) is below.

I don't know how to proceed.

Code: Select all
   
    <ul>
       <li data-cycle-background="1.jpg" data-cycle-caption1="Tra terra e stelle"  data-cycle-caption2="La location per il party dei tuoi sogni"></li>
       <li data-cycle-background="2.jpg" data-cycle-caption1="Swimming Party"  data-cycle-caption2="Organizza il tuo party ai bordi della splendida piscina"></li>
       <li data-cycle-background="7.jpg" data-cycle-caption1="Passione e tradizionalita'"  data-cycle-caption2="Menu personalizzati per ogni tipo di evento"></li>>
       <li data-cycle-background="9.jpg" data-cycle-caption1="Pizza & Restaurant"  data-cycle-caption2="Goditi attimi di pure prelibatezze"></li>
       <li data-cycle-background="12.jpg" data-cycle-caption1="Arte Culinaria"  data-cycle-caption2="Menu di mare, terra, vegetariano."></li>
       <li data-cycle-background="15.jpg" data-cycle-caption1="Lounge Bar & atmosphere"  data-cycle-caption2="Per il tuo tempo libero e disimpegnato"></li>
       <li data-cycle-background="10.jpg" data-cycle-caption1="Delicious Food"  data-cycle-caption2="Il tuo miglior ricordo sarà il gusto dei nostri piatti."></li>
       <li data-cycle-background="14.jpg" data-cycle-caption1="Disponibilita' 365 giorni all'anno"  data-cycle-caption2="Ampie sale interne ed esterne"></li>
       <li data-cycle-background="17.jpg" data-cycle-caption1="Party Personalizzati"  data-cycle-caption2="Temi e personalizzazioni su tua richiesta"></li>
       <li data-cycle-background="18.jpg" data-cycle-caption1="Live show & Music"  data-cycle-caption2="Spettacoli Live e disco music"></li>
    </ul>
I suggest you please use 'repeatable regions' to create the slideshow.
Please see the following post as a guide -
viewtopic.php?f=4&t=8166#p14486

Hope this helps.
Thanks KK, I followed what you suggested and it works perfectly. Now I have another problem.
On this page I have a gallery of images.
http://pasticcerialacuccagna.com/vic/#gallery

I used the same procedure, so I defined the repeatable zone

Code: Select all
<cms:repeatable name="gallery" label='gallery' >
    <cms:editable name='gallery_image'
       label="Immagine Galleria"
       width="1170"
       height="660"
       show_preview='1'
       preview_width="150"
       type="image" />
     <cms:editable name='gallery_text'
       label="Descrizione Immagine"
       type="text" />
</cms:repeatable>


And then I put the zone in the html part.

Code: Select all
 <cms:show_repeatable 'gallery' ><img src="<cms:show gallery_image />" data-cycle-desc="<cms:show gallery_text />"  class="fullBg" alt="Victoria Club"> </cms:show_repeatable> 

   <!-- <img src="assets/img/2.jpg" data-cycle-desc="La piscina"  class="fullBg" alt="Victoria Club">-->


In the administration panel, however, only the section relating to the Slider is displayed.

How is it possible ? pon can i use two repeatable areas on the same page? (I remind you that it is a single page site where I only have the index file)

Thank you
can i use two repeatable areas on the same page?
Yes, of course. No problem with having multiple separate repeatable regions.

In the administration panel, however, only the section relating to the Slider is displayed
Then the region has not been picked up by the admin-panel. Please make sure to visit the changed template as super-admin for your changes to be reflected in the admin-panel.

Hope this helps.
Hello KK, everything is working now, it was probably a cache problem.
Now I hope to learn the other wonderful possibilities of this CMS.
Thanks for everything

PS. I have provided the translation into the Italian language, maybe some other user needed it, I can send you the file.
I am glad to know that :)
With regards to the translation, thank you very much. Please post it here -
viewtopic.php?f=6&t=8116
8 posts Page 1 of 1