Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
3 posts Page 1 of 1
I found a problem when I was using pagination in a jQuery Mobile theme, when there was no pagination it was still showing an empty DIV and causing a loading loop - I figured out by using and extra conditional statement in the pagination_bottom I resolved the issue

Code: Select all

         <cms:if k_paginated_bottom && k_count != k_total_records>
         <div data-role="navbar">
         <ul>
                 <cms:if k_paginate_link_prev >         
                     <li><a href="<cms:show k_paginate_link_prev />"><i class="icon-chevron-left"></i> Prev</a></li>
                 </cms:if>
                 <cms:if k_paginate_link_next >
                     <li><a href="<cms:show k_paginate_link_next />">Next <i class="icon-chevron-right"></i></a></li>
                 </cms:if>
         </ul>
         </div>
         </cms:if>
hello Patrick - I've followed your contributions to the forum ... a great new energetic presence - and thanks for your latest tip!
Thanks @potato - I will continue to post tidbits that might be of use to others, I expect to building a good few sites with Couch in the upcoming weeks so I will inevitably pick up / discover new approaches during that time.
3 posts Page 1 of 1
cron