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

  • 1 year ago
Drew McLellan

Drew McLellan 2339 points
Perch Support

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

Scott Gruber

Scott Gruber 0 points
Registered Developer

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 2339 points
Perch Support

Perfect!