Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi again :)

I'm creating image gallery and I'm doing it in way how it's described in Portfolio tutorial.

So let's say that this is part of my code for showing images: (It's detailed/single page of group)


Code: Select all
....
<li class="col-md-3>
<span class="thumb-info">
<img src="image location">
</span
</li>
....


In Docs it says that I need to put <cms:show image_number /> for every image. So if you would have 20 images, I will need to create 20 lines of similar code and make 20 editable regions. And that doesn't make any sense to me. And there's probably solutions for this, and I need it right now :)

EDIT: I found tutorial for Photo Gallery in Docs. Will check it and try to solve this.
Yeah, still need help.

I need this:

- I want that I can create new entry, for example called "Nature" and in that entry to put some images. And I want to show that entry on Gallery page, and when user click on that entry, all images published in "Nature" entry will show him up.

How can I do that?
There are two possible ways of doing that -

1. Create 'Nature' (as also the other entries) as folder of the gallery template and put all associated images within it.
On the front-end, list all folders using cms:folders. Clicking a folder will lead to the folder-view where you can list all images within that folder. It is covered in the 'portfolio' tutorial. Perhaps you'd find the following thread useful too - viewtopic.php?f=2&t=9630

2. Use two templates - the first would be the gallery template as above. The second would be a clonable template with pages representing each of the entries you mentioned (e.g. Nature etc.). Relate the two templates as explained in the following thread - viewtopic.php?f=2&t=9630

Hope it helps.
KK wrote: There are two possible ways of doing that -

1. Create 'Nature' (as also the other entries) as folder of the gallery template and put all associated images within it.
On the front-end, list all folders using cms:folders. Clicking a folder will lead to the folder-view where you can list all images within that folder. It is covered in the 'portfolio' tutorial. Perhaps you'd find the following thread useful too - viewtopic.php?f=2&t=9630

2. Use two templates - the first would be the gallery template as above. The second would be a clonable template with pages representing each of the entries you mentioned (e.g. Nature etc.). Relate the two templates as explained in the following thread - viewtopic.php?f=2&t=9630

Hope it helps.


I did it with repeatable regions. But I have only one problem. On index page of gallery it doesn't show me image of every entry. Title is there, but not the image.

This is code from my gallery_list.html:
Code: Select all
<cms:pages masterpage="gallery.php">
<img src="<cms:show my_image />">
<cms:show k_page_title />
</cms:pages>


And the code from gallery.php:
Code: Select all
<cms:show_repeatable 'my_multiple_images' >
<img src="<cms:show my_image />">
</cms:show_repeatable>



EDIT: I created new editable region for Main Image and that solves the problem.
4 posts Page 1 of 1
cron