Display Related Content in Collection Items Listing
Wondering if I'm missing something here.
I have two collections setup: Classes and Staff. Here is the template code for my Classes collection:
<perch:content id="classsubj" type="text" label="Course Title" required="true" title="true" /> <perch:content id="classslug" type="slug" for="classsubj" editable="false" suppress="true" /> <perch:categories id="classacad" label="Category" set="academics" required="true" /> <perch:related id="classstaff" collection="Staff" label="Staff"> <perch:content id="name" type="text" /> </perch:related>
Everything is working fine and as expected, but when I return to the listing that displays all the items in my Classes collection, I want to display the selection made for Staff.
Under my Options tab for the Classes collection, I have these to choose from:
name, _title, classacad, classslug, classsubj
_title, classacad, name, so that the listed items should each display a classroom title, the category of the class, and the staff name of that class.
But all I'm getting is the class title and the category displaying. Name is coming up blank.
I'd like for the name to display so that at a quick glance, if two staff members are teaching courses with a similar subject name, the two items can quickly be distinguished and an admin won't have to open each class item to verify who the staff member is for a particular class.
In my Staff collection, the perch content field for
name does have the
So how can I get the staff name selected from the perch related field in my Classes collection, to be displayed in the items list of my Classes collection?
Thank you, Joshua