Question About Dynamic Content - Question | JoomShaper

Question About Dynamic Content

Paul Srch

Paul Srch

SP Page Builder 1 week 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
4 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 week 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 4 days 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 day 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 20 hours ago #231302

Glad to know that and thanks for accepting the answer.

0