I've been struggling with this for a few days now...
I'm creating a website for a real estate company, using couch (as descibed here before).
I have (dynamic) folders to keep certain projects in a Region together and a cloneable template with further data and custom fields for the project itself.
eg.:
- Region1:
--Region1Project1
--Region1Project2
-Region2:
--Region2Project1
-Region3:
--Region3Project1
--Region3Project2
--Region3Project3
--Region3Project4
--Region3Project5
...
I want to create a list-view which handles the name and image of the Region and the underlying Projects.
Meaning: Region1 - Region1Project1 - Region1Project2 - Region2 - Region2Project1 - Region2Project2 ...
In best case the output would be something like:
The Regions (eg. Region1, Region2,...) should have different content between the <div> tags...
I've tried several things but without good result. One of the problems is, the <div class="row"> that need to be closed after 4 times an underlying <div> that can be coming out of a "folder" or a "page" (meaning:dynamic). Further if a row doesn't contain 4 times a <div> , it will need to be closed with something like <div class=""> </div> (to keep the grid working correctly).
Any advice for attempts are really appreciated.
I'm struggling with my code combining <cms:folders><cms:pages></cms:pages></cms:folders>
Thanks in advance...
info tags: pages
info tags: folders
I'm creating a website for a real estate company, using couch (as descibed here before).
I have (dynamic) folders to keep certain projects in a Region together and a cloneable template with further data and custom fields for the project itself.
eg.:
- Region1:
--Region1Project1
--Region1Project2
-Region2:
--Region2Project1
-Region3:
--Region3Project1
--Region3Project2
--Region3Project3
--Region3Project4
--Region3Project5
...
I want to create a list-view which handles the name and image of the Region and the underlying Projects.
Meaning: Region1 - Region1Project1 - Region1Project2 - Region2 - Region2Project1 - Region2Project2 ...
In best case the output would be something like:
<div class="row">
<div class="region">Region1</div>
<div class="project">Region1Project1</div>
<div class="project">Region1Project2</div>
<div class="region">Region2</div>
</div>
<div class="row">
<div class="project">Region2Project1</div>
<div class="project">Region2Project2</div>
<div class="region">Region3</div>
<div class="project">Region3Project1</div>
</div>
...
The Regions (eg. Region1, Region2,...) should have different content between the <div> tags...
I've tried several things but without good result. One of the problems is, the <div class="row"> that need to be closed after 4 times an underlying <div> that can be coming out of a "folder" or a "page" (meaning:dynamic). Further if a row doesn't contain 4 times a <div> , it will need to be closed with something like <div class=""> </div> (to keep the grid working correctly).
Any advice for attempts are really appreciated.
I'm struggling with my code combining <cms:folders><cms:pages></cms:pages></cms:folders>
Thanks in advance...
info tags: pages
info tags: folders