Forum
Runway Upgrade Collections
Hello
I have successfully upgraded to runway and converted a region of items to a collection. This region of items worked on a list/detail format and filtered by categories. I am unsure how to display my collection intend of my custom content. Changing perch_content_custom to perch_collection did not work. No items show.
<?php
perch_content_create('Photography', array(
'template' => 'portfolio_item.html',
'multiple' => true,
'edit-mode' => 'listdetail',
));
?>
<?php
perch_content_custom('Photography', array(
'template' => 'portfolio_listing.html',
));
?>
detail page:
<?php
perch_content_custom('Photography', array(
'page' => '/photography.php',
'template' => 'portfolio_item.html',
'filter' => 'slug',
'match' => 'eq',
'value' => perch_get('s'),
'count' => 1,
));
?>
list page:
<?php
perch_category('albums/'.perch_get('s').'/', array(
'template' =>'category-single.html'
));
perch_content_custom('Photography', array(
'template' => 'portfolio_listingcat.html',
'page'=>'/photography.php',
'category' => array('albums/'.perch_get('s')),
));
?>
<h2 style="font-size:12px; margin-left:23px;"><img src="/images/arrow4.png" width="10" /> More <?php perch_gallery_album_field(perch_get('s'), 'albumTitle'); ?> Images</h2>
<?php
perch_category('albums/'.perch_get('s').'/', array(
'template' =>'category-single.html'
));
perch_content_custom('Photography', array(
'template' => 'portfolio_listingnav.html',
'page'=>'/photography.php',
'category' => array('albums/'.perch_get('s')),
));
?>
Yes, you should change
perch_content_custom()
toperch_collection()
.What happens when you do that?
Yes I changed it on all 3 pages above but no items appeared at all on any is pages
Can you show me the code that isn't working, along with the debug output for that page? Otherwise I can old make blind guesses, which probably isn't helpful!
No worries, issue solved.