I am working on the section of the website what will work in the following way:
- On the main page (index.php), I will show multiple clickable regions with a title and a video
- When clicking on the title or the video the user will go to a specific page that will show the same title, description, hero image and image/video gallery
I understand that I need to use the clonable functionality of the template. Here is how my current template looks like:
Now on the main page (index.php) I call the template like so:
The main page (index.php) will only display one latest entry (page) instead of all the existing entries (pages).
How can I display all the available entries (pages) on the index.php?
- On the main page (index.php), I will show multiple clickable regions with a title and a video
- When clicking on the title or the video the user will go to a specific page that will show the same title, description, hero image and image/video gallery
I understand that I need to use the clonable functionality of the template. Here is how my current template looks like:
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template title='Section' clonable='1' />
<cms:editable type='text' name='video_url' label='Video URL' />
<cms:editable type='nicedit' name='desc' label='Description' />
<cms:editable type='image' name='hero_image' label='Hero image' show_preview='1' preview_width='150' />
<cms:repeatable name='single_gallery_item' label='Single gallery item' stacked_layout='1'>
<cms:editable type='image' name='gallery_image' label='Gallery image' show_preview='1' preview_width='150' />
<cms:editable type='text' name='gallery_video_url' label='Video URL' />
</cms:repeatable>
<?php COUCH::invoke(); ?>
Now on the main page (index.php) I call the template like so:
- Code: Select all
<cms:pages masterpage='services.php'>
<iframe src="<cms:show video_url />"></iframe>
<h4><cms:show k_page_title /></h4>
<a href="<cms:show k_page_name />"></a>
</cms:pages>
The main page (index.php) will only display one latest entry (page) instead of all the existing entries (pages).
How can I display all the available entries (pages) on the index.php?