Using Silverstripe 2.4.5
Hi All,
Let me ask the question first and explain whats going on after.
Is there a limit on the "content" amount for a page?
The reason I ask is because I seem to have reached a limit on my Testimonials page.
For example, Whenever I dropdown my list of Testimonials I can read about 19 separate Testimonials, but the 20th is cut-off half way.
Here are my Testimonial files...
TestimonialPage.ss
<div id="contentHolder">
<% include SideBar %>
<div id="content" class="typography">
$Content
<% if BigTestimonials %>
<% control BigTestimonials.GroupedBy(Type) %>
<div class="testimonialScrollWrap">
<h3>$Type Testimonials</h3>
<div class="testimonialGroupWrap">
<% control Children %>
<div class="eachtestimonial <% if Last %>last<% end_if %>">
<h5>$PersonsName</h5>
$Testimonial
</div>
<% end_control %>
</div>
</div>
<hr />
<% end_control %>
<% end_if %>
</div>
</div>
Javascript File
//Function for the testimonials page
if($('.testimonialScrollWrap').length > 0) {
$('.testimonialGroupWrap').height(0);
$('.testimonialScrollWrap h3').click(function(){
var currentSlide = $(this).parent('.testimonialScrollWrap').children('.testimonialGroupWrap');
var newHeight = 0;
var countChild = 0;
if($(currentSlide).hasClass('current')){
$(currentSlide).removeClass('current');
newHeight = 0;
} else {
$(currentSlide).addClass('current');
$(currentSlide).children('.eachtestimonial').each(function(){
newHeight += $(this).outerHeight();
countChild++;
});
if(countChild > 3){newHeight += $(currentSlide).children('.last').outerHeight();}
}
if(!$(currentSlide).parent().hasClass('last')){
$(currentSlide).stop().animate({height: newHeight}, 1500, 'easeInOutCubic');
}
});
}
Any help would be much appreciated.
Thanks,
-helenclarko