Question About Dynamic Content - Question | JoomShaper

is live, now with multi-currency selling.

Question About Dynamic Content

Paul Srch

Paul Srch

SP Page Builder 1 month ago

I have a Collection called Webinars and a Collection called Modules. Each Module contains a Reference field pointing to a Webinar. There will be one or more modules per webinar, but it's not the same number of modules per webinar; one may have 1, another may have 5, and another may have 3 modules.

Can a Dynamic Detail Page for a Webinar automatically display all related Module records where Module.Webinar = Current Webinar?

Is there a supported way to build parent/child relationships between collections and render the child records dynamically on a Detail Page?

What I'm looking to do is build a single dynamic content page that shows informatin for each webinar from the webinars collection, and then all of the modules assiciated with that webinar. Not sure if this is possible, but it would be nice to have the modules in an accordian.

0
6 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 month ago #230694

Hello,

Yes, this parent/child setup is supported in SP Page Builder Pro 6.4.0 and later. Version 6.4.0 introduced filtering through Reference and Multi-Reference fields in the Collection addon.

On the Webinar Dynamic Detail Page:

  1. Add a Collection addon.

  2. Select Modules as the source collection.

  3. Add a filter using:

    • Condition: Related
    • Association Field: Webinar

It will automatically display only the Module records connected to the currently viewed Webinar, regardless of how many modules each webinar has.

A fully dynamic Accordion item for each module is not currently available through the standard Accordion addon, so that part may require a custom addon or override.

You can also check these links below:

https://www.joomshaper.com/documentation/sp-page-builder/collection-references

https://www.joomshaper.com/blog/guide-to-collection-references-in-dynamic-content

-Regards.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 month ago #230933

Hi,

If you dont have any other queries, you can then close this post by accepting the answer.

0
Paul Srch
Paul Srch
Accepted Answer
1 month ago #231210

I havent been able to fully implement this yet, but it looks like it will be exactly what I need, so I will mark it as accepted.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 month ago #231704

Glad to know that and thanks for accepting the answer.

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

I'm now working on something related (haven't been able to get back to the originial issue yet).

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.

Can you figure out what I'm doing wrong?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 weeks ago #233007

Could you please create a new forum post about this new issue? Our team will help you.

0