Dynamic Popup Display Based on Blog Category - Best Approach?
Hi everyone,
I’m working on a blog setup and need advice on the best way to implement category-specific popups.
Current Setup:
- I have a blog divided into different topics/categories (currently using a dropdown element with Topic 1, Topic 2, Topic 3 options)
- This is set up as a Collection Blog
- I want different popups to appear based on the blog category:
- Topic 1 → Ebook Popup A
- Topic 2 → Ebook Popup B
- Topic 3 → Ebook Popup C
- I’ve created these as a Collection Popup connected to a Popup Component
My Question: What’s the best approach to make the correct popup appear based on the current blog post’s category?
Option 1: Create 3 separate popup components on the blog page, each with conditional visibility settings (only the popup matching the current blog’s topic would be visible)
Option 2: Connect the popup collection to the Popup Component - but how would I ensure the right popup displays based on the blog post’s topic/category match?
Which approach would be more efficient and easier to maintain? Or is there a better solution I’m missing?
Thanks for any guidance!