Hello All Couchies...
I am trying to do make an isotope gallery (eg: http://codecanyon.net/item/isotope-gallery-wordpress-plugin/full_screen_preview/4699060) using CouchCMS clonable pages concept with dynamic folders.
As shown in the URL above, there are four options for filtering, viz:
1. All
2. Wordpress
3. Web Design
4. Photography
I have been able to achieve filters 2 to 4. What I can't figure out is how to get the Filtering "ALL" to work. As I have already mentioned, I am using the Clonable feature with Dynamic Folders, I want to be able to:
1. Implement "ALL" Filter
2. Show few Images, i.e. no more than 20 images in the all filter.
My code for achieving the filtering is:
Products Page (Template Definition):
Products Page (Isotope Gallery Definition):
And I am calling the name of the folder from a snippet, using the code:
My current output is as shown in this image. The "All" Filtering is missing.
I am trying to do make an isotope gallery (eg: http://codecanyon.net/item/isotope-gallery-wordpress-plugin/full_screen_preview/4699060) using CouchCMS clonable pages concept with dynamic folders.
As shown in the URL above, there are four options for filtering, viz:
1. All
2. Wordpress
3. Web Design
4. Photography
I have been able to achieve filters 2 to 4. What I can't figure out is how to get the Filtering "ALL" to work. As I have already mentioned, I am using the Clonable feature with Dynamic Folders, I want to be able to:
1. Implement "ALL" Filter
2. Show few Images, i.e. no more than 20 images in the all filter.
My code for achieving the filtering is:
Products Page (Template Definition):
- Code: Select all
<cms:template title='Products Page - Editing' clonable='1' dynamic_folders='1'>
<cms:repeatable name='prod' label='Products'>
<cms:editable name='prod_image' label='Image' type='image' show_preview='1' preview_width='100' input_width='50' />
<cms:editable name='prod_name' label='Name' type='text' />
<cms:editable name='prod_desc' label='Description' type='nicedit' />
</cms:repeatable>
</cms:template>
Products Page (Isotope Gallery Definition):
- Code: Select all
<cms:show_repeatable 'prod' >
<div style="position: absolute; left: 0px; top: 0px; transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1); width: 337px; opacity: 1;" class="portfolio-item one-four <cms:show k_page_foldertitle /> isotope-item">
<div class="portfolio_img">
<img src="<cms:show prod_image />" >
</div>
<div class="item_overlay">
<div class="item_info">
<h4 class="project_name"><cms:show prod_name /></h4>
</div>
</div>
</div>
</cms:show_repeatable>
And I am calling the name of the folder from a snippet, using the code:
- Code: Select all
<ul class="clearfix">
<cms:pages masterpage='products.php'>
<li>
<a id="all" href="#" data-filter=".<cms:show k_page_foldertitle />" >
<h5><cms:show k_page_foldertitle /></h5>
</a>
</li>
</cms:pages>
</ul>
My current output is as shown in this image. The "All" Filtering is missing.