Display related collection items filtered by current item's reference field on Detail page - Forum | JoomShaper
Staff replied SP Page Builder

Display related collection items filtered by current item's reference field on Detail page

Asked by jean luc trevilly 6 months ago Last activity 6 months ago

Hi,
I'm building a "Similar Projects" section on my Dynamic Details page using SP Page Builder Pro 6.2.3.
My setup:

Collection: "Realisations" (main collection)
Collection: "Categories" (separate collection with 6 items: Appartement, Maison, Studio, Bureau, Commerce, Objet)
Field "Categorie" in Realisations = Reference field pointing to Categories collection

On the Detail page, I want to display 3 other items from the Realisations collection that share the same category as the current item being viewed — a "You may also like" section.
I added a Collection addon (source: Realisations, limit: 3) at the bottom of the Detail page and tried to configure the filter:

Field: Categorie
Condition: "Est inclus dans" / "Is included in"
Value: → only shows static category choices, no dynamic/current item option

I also tried:

Condition: "Est associé à" / "Is associated with"
Association field: → grayed out, not selectable

My question: How can I filter a Collection addon on a Detail page so it only shows items with the same Reference field value as the current item? Is there a specific condition or configuration I'm missing?
I've seen this demonstrated in your tutorial video on dynamic portfolios — is this feature available in version 6.2.3?
Thank you!

4 replies

jean luc trevilly Asked this

An Idea ?

Ofi Khan Staff

Hello jean luc trevilly,

Thanks for the detailed explanation — your setup is perfectly clear, and you’re very close. The limitation you’re hitting is actually expected behavior in SP Page Builder Pro.

🔍 Why your current approach isn’t working

In this version, the Collection addon filter does not support dynamic context from the current Detail item (i.e., it can’t automatically take the current item's Reference field value like “Categorie” and use it as a filter).

That’s why:

The Value field only shows static options (manual selection)

The “Is associated with” condition is disabled — it’s not functional for this use case in this version

Best regards

Ofi Khan Staff

Apology for the delay. It might not be possible in the future.

Please follow your mentioned blog step by step. You should be able to make it work.

Log in to reply.