I have a globally defined repeatable region in globals.php, a set of customer reviews, which I will have to output throughout the website:
I need to output the following HTML-markup:
I tried to display all available data sets within a JS-Carousel with the following code without success:
I get the following error message:
"ERROR! Tag "get_custom_field" has no matching closing tag"
How can you output a globally defined repeatable region?
Furthermore, is it possible to randomly output only 1 entry from this data-set (i.e. on page reload only one random entry is displayed)?
- Code: Select all
<cms:repeatable name='client_reviews' label='Client Reviews' order='3' >
<cms:editable name='client_name'
label='Client'
type='text' />
<cms:editable name='client_review'
label='Review'
height='100'
type='textarea'/>
</cms:repeatable>
I need to output the following HTML-markup:
- Code: Select all
<div>
<blockquote>
<p>"This is a review..."</p>
<footer><cite title="Source Title">Client Name</cite></footer>
</blockquote>
</div>
I tried to display all available data sets within a JS-Carousel with the following code without success:
- Code: Select all
<div id="carousel" class="no-js owl-carousel">
<cms:get_custom_field 'client_reviews' masterpage='globals.php' >
<div>
<blockquote>
<p><cms:get_custom_field 'client_review' masterpage='globals.php' /></p>
<footer><cite title="Source Title"><cms:get_custom_field 'client_name' masterpage='globals.php' />
</cite></footer>
</blockquote>
</div>
<cms:get_custom_field />
</div>
I get the following error message:
"ERROR! Tag "get_custom_field" has no matching closing tag"
How can you output a globally defined repeatable region?
Furthermore, is it possible to randomly output only 1 entry from this data-set (i.e. on page reload only one random entry is displayed)?