We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question, Showcase

Perch related in blocks

Can perch:related be put in a template and used as a block so editors can add related collections. I think the template might need scope-parent=true.

Use case is adding related collections of articles, centers, or people. Plus it could be good way to interrupt the flow of a users reading experience.

I use perch:related in master page template as an aside which works great. But wondered if it might work with blocks.

Scott Gruber

Scott Gruber 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think it should do - the simplest way to find out is to try it.

Totally works.

I put up a gist as a sample, and really should write out a blog post, but setting up collections in a block using perch:related works a.o.k.

sample gist of using perch:related in a block

Drew McLellan

Drew McLellan 2638 points
Perch Support