Runway: Creating an entry page for collection items?
I'm trying to create an article page when clicked on from an archive of articles (collections).
Using the following will display all articles, but I only want to show the relevant article that is selected from the archive view.
<?php perch_collection('Knowledge Articles', [ 'template' => 'cpi/knowledge_article.html', ?>
It occurred to me that I should be using the slug to achieve this - I looked in the documentation to see how this is done elsewhere and found (how to create a detail page)[http://solutions.grabaperch.com/architecture/how-do-i-create-list-detail-pages] This however doesn't work but is there something similar that I should be doing?
<?php perch_collection('Knowledge Articles', [ 'template' => 'cpi/knowledge_article.html', 'filter' => 'slug', 'match' => 'eq', value' => perch_get('s'), 'count' =>1 ]); ?>
Want to reply to this thread?Login with Perch