Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hello,

I am currently thinking through how I am going to go about integrating a particular design with couch. The idea is that on the front end, there will be a page called projects, and on that page there will be a variety of projects, which will each have an image and title sitting on a background colour (in a div probably). The project can be clicked on to view an individual page for the project with more text and images. On the main projects page, there will be 3 or 4 project types - web projects, print projects, writing projects, with multiple projects in each type. and each project type will have its own background colour (so all web projects would have a green background, all print projects would have a red background and so on). There needs to be the facility to add new projects.

I would like to use Isotope (http://isotope.metafizzy.co) to be able to sort the projects by project type, and to lay them out in a masonry style layout.

I am wondering if there is a way to create a cloneable template for the projects, but allow the user to assign which type of project (and therefore background colour) it is, so that isotope is able to sort it?

I am a bit of a novice to CouchCMS beyond the basic stuff so excuse me if I'm asking the obvious, or if I am not describing what I am trying to achieve correctly!

Thanks in advance for any help you can give...
Hi,

I think defining 'web', 'print' and 'writing' as folders (http://docs.couchcms.com/miscellaneous/ ... lders.html) should be sufficient to categorize the projects.

While listing the pages (i.e. projects) you can check which folder each project belongs to and output the right color.

Does this help?
Thanks for the reply. So it's possible to assign all posts within a certain dynamic folder to look a certain way, and all posts that belong to another folder to look a different way (i.e.. different background colours)? Sorry if it's obvious but how can I actually go about doing this?
An additional thing to ask in relation to the above question. I would ideally like to be able to reorder these projects so that in 'view all' mode (the listing mode, before a user chooses to sort by category), I can choose which order they appear. Therefore I am thinking that nested pages would be better than cloneable ones, however would the folder idea still apply to allow me to categorise and therefore assign different background colours to the different project types?
So it's possible to assign all posts within a certain dynamic folder to look a certain way, and all posts that belong to another folder to look a different way (i.e.. different background colours)?
Certainly. You can always check which folder a page belongs to and then change the output accordingly e.g. add a class to the markup or output some different markup. Consider the following snippets -
Code: Select all
<cms:if k_page_foldername='print'>
    ...
</cms:if>

Code: Select all
<DIV class="<cms:show k_page_foldername />" >

I would ideally like to be able to reorder these projects so that in 'view all' mode (the listing mode, before a user chooses to sort by category), I can choose which order they appear. Therefore I am thinking that nested pages would be better than cloneable ones
Please use the method discussed here - viewtopic.php?f=8&t=9577 to make normal cloned pages reorderable. You don't need to use nested-pages.

Hope it helps.
That sounds perfect - thank you for your reply, extremely helpful as always. I can go ahead with the design knowing that I'll be able to integrate it with Couch as hoped when I get to that stage. Thanks!
6 posts Page 1 of 1