by
KK » Sat Mar 14, 2015 5:16 pm
Hi Xtriz3D,
Let us suppose a repeatable region named 'my_images' is defined in a template named 'example.php'.
If we want to display this repeatable-region on another template, say index.php, we can place the following in index.php -
- Code: Select all
<cms:pages masterpage='example.php' page_name='xyz' >
<cms:show_repeatable 'my_images' >
...
</cms:show_repeatable>
</cms:pages>
In the code above we are showing the repeatable region from a cloned page named 'xyz' of example.php. If example.php happens to be a non-cloned template, simply drop the 'page_name' parameter e.g.
- Code: Select all
<cms:pages masterpage='example.php' >
<cms:show_repeatable 'my_images' >
...
</cms:show_repeatable>
</cms:pages>
Replying to your other query- there is no 'limit' parameter so to show only a limited number of rows we'll have to do the counting ourselves using the k_count variable e.g. as follows -
- Code: Select all
<cms:pages masterpage='example.php' >
<cms:show_repeatable 'my_images' startcount='0' >
<cms:if k_count lt '10'>
...
</cms:if>
</cms:show_repeatable>
</cms:pages>
Hope it helps.