문제

Can any one have idea for the perfect choice for making kentico CMS web part hold slider content ? I've tried to to use (repeater), but it's not complete and doesn't match requirement

도움이 되었습니까?

해결책

We use flexslider 2 (http://flexslider.woothemes.com/) and use custom document types and repeaters to accomplish content sliders in Kentico CMS.

In the repeater web part, we use the HTML Envelope to put the container elements in, then use the transformation to repeat through the dynamic section.

We put this in the Content before:

<div class="flexslider"><br/>
<ul class="slides">

and we put the closing tags in the Content after:

</ul><br/>
</div>

Then the transformation contains this:

<li><br/>
  <img src="slide1.jpg" /><br/>
</li>

Add the JavaScript file references to your page, specify the path to your slider documents in the repeater web part and it should work like you would expect.

다른 팁

In terms of the custom document type, what did you use for it?

Also you mention to add the script files to the page, did you add the script files in template?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top