Include Bootstrap Carousel template into Perch blocks
I would like to include the carousel template into perch blocks to be able to reuse it several times into the same page. I built the carousel template as described here: http://forum.grabaperch.com/forum/11-18-2015-bootstrap-carousel-template-for-perch Because it is split into 3 content templates, I tried it with a layout. Here's my code:
<perch:block type="carousel" label="Carousel"> <perch:layout path="refs.carousel"> </perch:block>
Perch layout (named refs.carousel.php):
<?php perch_content_create('Carousel', array( 'template' => 'carousel-main.html', 'multiple' => true, )); ?> <?php perch_content_custom('Carousel', array( 'template' => 'carousel-indicators.html', )); ?> <?php perch_content_custom('Carousel', array( 'template' => 'carousel-slides.html', )); ?>
Probably I am on the wrong way... Thanks a lot for your help!
Want to reply to this thread?Login with Perch