Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Currently I am building a website consisting of productblocks and slideshows.
Whenever a productblock is selected, the page scrolls to a region of the page, and opens the corresponding slideshow.

What is currently working in the CMS:
- I can add productblocks (after select goes to the proper productslideshow)
- I can add slideshows

What is not working/what I can't figure out:
- Since I cannot add a repeatable to a repeatable, I'm looking for a way to add any number of pictures to the slideshows, currently I can only add a fixed amount of pictures, since the CMS had no reference otherwise.

- The layout! This looks horrible (see attached image).

URL for reference: (dont mind the pictures in the slideshowsm just filled them up with random stuff :) )
http://www.bosd.eu

Ow, by the way:
The carousel could act weird, or not properly aligned in the page and such.
This is because I haven't added any max-with of height to the slides yet.

Attachments

Nobody? :(
Instead of using a repeatable for this, since there are so many editables inside of the repeatable, you may find it much neater and easier to use if you were to use a cloned page template instead. (You can use a separate template and just output it wherever desires, it doesn't need to be accessible) - repeatable's weren't designed to be made with so made regions inside of them, at least on the current version of couch.

If you've followed through the documentation tutorials you should already be familiar with cloned templates.

The benefit of this is you can then also add a repeatable region inside of the cloned template for the slider image.

You probably overlooked this because generally cloned templates come with multiple views and separate urls for each page, but it's very common practice to only use the list-view of a cloned template and ignore the page-view altogether, if the view is not coded into the template then viewing the page-view url for any cloned page will show a blank white page.

Hope I've made some sense of this for you, little tired so my explanation is probably a little off - if you get stuck just ask and I'm sure myself or one of the other forum members will be able to assist with code examples.
Image
Thank you for your answer.

I am really new to Couch, and I just read some info on your suggestion.
http://docs.couchcms.com/concepts/cloned-pages.html

Hower, I don't get how I should implement this.
I only have one page, in which everything should be loaded.

I don't see how I could be able to fix this issue this way (probably because of my lack of knowledge).

I'm not expecting someone to magically hand met the answer, but a small code example would be great, so I know what you mean, and I can try to implement it.
You can grab the contents of a separate template with the pages tag -

http://docs.couchcms.com/tags-reference/pages.html

So you can create a second template for the cloned pages following the documentation, then using the pages tag on your single template to output the data from that template on your single page.
Image
http://docs.couchcms.com/concepts/repea ... gions.html
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.

Give each editable within repeatable enough of pixels.
In my experience this can fit a button nicely:
Code: Select all
 input_width='120'
col_width='125'

Also, consider type='textarea' for longer texts. For textareas you can specify height. example: height='120'
For images, though, only preview_width is available, there is no height.
Anyways, it can look good, if you put some effort with col_width:

Attachments

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
Thank you for your answer.

I can understand how annoying dumb people can be, but I think I need a visual representation of what you are saying to really get what I am supposed to do.

This is what I think you mean:

Main page
(includes refrence to other page <---------- Other page with repeatable data.
trendoman wrote: http://docs.couchcms.com/concepts/repeatable-regions.html
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.

Give each editable within repeatable enough of pixels.
In my experience this can fit a button nicely:
Code: Select all
 input_width='120'
col_width='125'

Also, consider type='textarea' for longer texts. For textareas you can specify height. example: height='120'
For images, though, only preview_width is available, there is no height.
Anyways, it can look good, if you put some effort with col_width:


Thank you!
That'll solve the problem with layout for the moment.

However I guess repeatable is not the way to go for my situation.
I would like to know more about cloned page templates.
8 posts Page 1 of 1