Including Related Collection Information In A Dynamic Content Details Page - Question | JoomShaper

is live, now with multi-currency selling.

Including Related Collection Information In A Dynamic Content Details Page

Paul Srch

Paul Srch

SP Page Builder 2 weeks ago

I'm working on building a details page using Dynamic Content

I have a set of "Courses", set up as a dynamic collection. I also have a set of "Instructors" also set up as a dynamic collection.

In the Courses collection, I have a field named "Instructors" which is set up as a multiple reference to the Instructors collection.

I can edit an item in the Courses collection and select one or more Instructors.

However, on the Details page for the Courses, I can't figure out how to get the specific instructor or instructors for the course I'm looking at to show up. When I use the Dynamic Text addon, the dropdown for the field does not include Instructors as an option, so I can't select it.

If it's not clear, what I want to to is display a details page about a course, and include information about the instructors assigned to that course (from the Instructors collection) on that page

Not sure what I'm doing wrong

0
4 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 2 weeks ago #233015

Hi there,

Thanks for the detailed explanation.

You're not doing anything wrong. Since Instructors is configured as a Multi-Reference field, you cannot display it directly using the Dynamic Text addon. Since the field can contain multiple related items, you need to use the Collection addon to display them.

For your setup, please follow these steps on the Course Details page:

  1. Add a Collection addon to your Course Details page.
  2. Set the Source to your Instructors collection.
  3. Open Filter > + Add Conditions.
  4. Select the Instructors collection as the reference collection.
  5. From the Condition dropdown, select Is Associated With.
  6. Select the Instructors Multi-Reference field from your Courses collection.
  7. Inside the Collection addon, add the Dynamic Text, Dynamic Image, or other addons you want to use to display the instructor information.

This will retrieve only the instructors associated with the specific course currently being viewed.

You can find the relevant documentation here:

Collection References documentation

The documentation also includes an example of using a Multi-Reference field with the Collection addon and the Is Associated With filter.

Best regards,

0
Paul Srch
Paul Srch
Accepted Answer
2 weeks ago #233028

This doesn't quite work the way I expected: https://cpi.threecats.digital/professionals/professional-training/parenting-coordcinator-training-pa-only

I want each instructor on it's own line:

<Image> Mini-Bio Name Read More Link

0
Paul Srch
Paul Srch
Accepted Answer
2 weeks ago #233113

Actually - I just figured it out; it was the number of columns and rows in the collection addon.

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 2 weeks ago #233138

Glad that you have figured it out:)

Thanks for accepting the answer.

Have a nice day!

0