Hello folks,
I'm trying to make something for my personal porfolio site, where I have a "classic" Couch template populating pages serving for a basic image gallery made with a repeatable. Within its own template it works just fine, displaying a list of pages, and when clicked I see the listing page with images from repeatable. However, when trying to access pages from another template (with a masterpage set of course) it displays all the results. My question: Am I able to use "page views" technique at another template located at a different folder within the site structure?
Here is the code at the properly working template:
I'm trying to make something for my personal porfolio site, where I have a "classic" Couch template populating pages serving for a basic image gallery made with a repeatable. Within its own template it works just fine, displaying a list of pages, and when clicked I see the listing page with images from repeatable. However, when trying to access pages from another template (with a masterpage set of course) it displays all the results. My question: Am I able to use "page views" technique at another template located at a different folder within the site structure?
Here is the code at the properly working template:
- Code: Select all
<!-- listing content -->
<cms:if k_is_list >
<cms:pages>
<div class="col-md-4 mb-5 text-center">
<a href="<cms:show k_page_link />" title="<cms:show k_page_title />">
<img src="<cms:thumbnail gallery_list_image width='600' height='600' />" alt="<cms:show k_page_title />"></a>
<p class="title mt-2"><cms:show k_page_title /></p>
</div>
</cms:pages>
<cms:else />
<!-- page content -->
<div class="col-12 text-center mb-4"><h3><cms:show k_page_title /></h3></div>
<cms:show_repeatable 'gallery_images'>
<div class="col-md-4 mb-5 mx-gutter">
<img src="<cms:thumbnail gallery_image width='600' height='600' />" alt="<cms:show k_page_title />">
</div>
</cms:show_repeatable>
</cms:if>