Forum

Thread tagged as: Suggestions, Runway

Collections item preview

Is there a way to view a preview of a post in a collection? Maybe something like perch_blog_check_preview(); for a collection item?

Scott Gruber

Scott Gruber 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you set the "URL for single items" setting under the collection options?

I didn't have anything there before. So I put in /articles/[slug:s] but no slug showed up in preview URL. It returned a URL like this

/articles/[slug:s]?preview=all

I manually put in the slug in the URL b/c I know what slug is, then I got preview. Just need to figure out how to get the slug to display.

I switched field to,

/articles/{slug}

And that worked and I got a nice preview. On sample URL like

/articles/test-w?preview=all

Thanks for your help.