I am using nested pages so the user of a new site I am doing can add new pages and it's working all fine but I need to display info from another page on the home page
the home page url is index.php?p=5 and the shows page is index.php?p=6 and I need to get some info from the shows page and display it on the home page but unsure how to do that when using nested pages as masterpage does not seem to work with the p=6 part
The code I currently have is below
Update: The code above is in a html file in the couchcms snippet folder
I did try the following on the above code but didn't work
It's just not getting the content from the nestedpage id 6 for some reason
the home page url is index.php?p=5 and the shows page is index.php?p=6 and I need to get some info from the shows page and display it on the home page but unsure how to do that when using nested pages as masterpage does not seem to work with the p=6 part
The code I currently have is below
- Code: Select all
<cms:pages masterpage='index.php?p=6' limit='3'>
<div class="news-block col-md-4 col-sm-6 col-xs-12">
<div class="inner-box wow fadeInUp" data-wow-duration="1000ms" data-wow-delay="0ms">
<div class="image">
<div class="post-date"><cms:show shows_day/> <span><cms:show shows_month/></span></div>
<a href="show-details.php"><img src="<cms:show shows_image/>" alt="" /></a>
</div>
<div class="lower-content">
<h3><a href="show-details.php"><cms:show shows_name/></a></h3>
<a href="show-details.php" class="theme-btn read-more">Read More</a>
</div>
</div>
</div>
</cms:pages>
Update: The code above is in a html file in the couchcms snippet folder
I did try the following on the above code but didn't work
- Code: Select all
<cms:nested_pages masterpage='index.php' k_nestedpage_id='6' limit='3'>
<div class="news-block col-md-4 col-sm-6 col-xs-12">
<div class="inner-box wow fadeInUp" data-wow-duration="1000ms" data-wow-delay="0ms">
<div class="image">
<div class="post-date"><cms:show shows_day/> <span><cms:show shows_month/></span></div>
<a href="show-details.php"><img src="<cms:show shows_image/>" alt="" /></a>
</div>
<div class="lower-content">
<h3><a href="show-details.php"><cms:show shows_name/></a></h3>
<a href="show-details.php" class="theme-btn read-more">Read More</a>
</div>
</div>
</div>
</cms:nested_pages>
It's just not getting the content from the nestedpage id 6 for some reason