Problems, need help? Have a tip or advice? Post it here.
10 posts Page 1 of 1
When I switched my blog page from .html to .php everything seems to work except for my image slider (I made sure to make my internal links absolute). It displays the images as a bulleted list. How would I get the slider to work with couch and have the ability to upload multiple images for the slider on the same blog post?
Here is the code snippet I have:
Code: Select all
 <ul class="project-slider">
                            <li><img src="<cms:show listing_image />" alt="<cms:show k_page_title />"/></li>
                        </ul>
I'm not sure I understood you correctly. Do you want a unique image slider on each blog post or only on the blog home view?
On each blog post. I am using couch for a real estate website so each "blog" post is going to be a listing with multiple images for the listing property.
Code: Select all
<cms:repeatable name='listing_pictures' >
   <cms:editable name='listing_image' type='image' />
   <cms:editable name='listing_image_title' type='text' />
</cms:repeatable>

...

<ul class="project-slider">
   <cms:show_repeatable 'listing_pictures' >
      <li><img src="<cms:show listing_image />" alt="<cms:show listing_image_title />"/></li>
   </cms:show_repeatable>
</ul>
http://www.couchcms.com/docs/concepts/repeatable-regions.html
I plugged the first part in the header and the second part where the slider should be and I am getting this error:

ERROR! Unknown tag: "repeatable"
You need to use Couch 1.3: http://www.couchcms.com/forum/viewtopic.php?f=5&t=7014. The upgrade instructions are included in the download.
That worked great and it allowed me to upload multiple images for one listing. I have 1 issue remaining:

The jquery slider does not want to load. It still is showing all images on the post. I assume this is because the page switched from HTML to PHP?
If the slider was working fine before you switched, then it could only be that the css or more likely the js file(s) have not been linked correctly. You can double-check that everything is loading correctly by using your browser's web console/developer tools.
I inspected the element but can't see where it breaks.
Could you PM me the code or preferably a link where I can see this?

Edit: Problem was resolved.
10 posts Page 1 of 1