Unable to configure a repeating group to display all posts of a specific theme across different pages

Hello,

I’m having difficulties creating my blog.

I created the profile page where the current user can write a post, but they must choose a theme in order to post. I managed to set this up, and the repeating group (RG) below correctly displays the posts along with their themes.

However, I also created dedicated pages for each theme. For example, for the “Health” theme, I created a page with basic information where the current user can post directly, and the posts will have the theme “Health.”

The problem I’m facing is that I can’t configure the RG on the “Health” page to display both the posts published on that page and the posts published on the user profile page that have the theme “Health.”

In short, I would like the “Health” page to show all posts with the Health theme, and if possible, I’d like the page to automatically reference the “Health” theme.

I’ve tried several solutions. I created a dedicated data type for themes with fields name and image, where each row corresponds to a theme (e.g., name = Health, image = health image). The solutions I found suggested setting the RG constraint as Do a search for Theme with the constraint name = “Health” typed manually. However, this does not work at all, and I’m out of ideas, I admit. Thank you for your help.

  • I do have a Post data type with a field theme of type Theme (data type).

  • I also created a Theme data type with fields name and image corresponding to each theme.

  • I already tried setting the RG type to Post, with the constraint Do a search for Theme and name = “Health” manually typed, which didn’t work.

  • I also applied this formula in the Post button at the top of the page, which didn’t work either.

  • In preview, I see “list of posts 0”, which indicates the RG isn’t returning anything.

Hey @eryne.mn :waving_hand:

Welcome to the Bubble Community! :tada: :confetti_ball:

There could be a few things that you might need to do. You said that on another page you are able to see posts with their themes, so I am assuming that your privacy rules aren’t an issue.

It seems like maybe it is just a data structure thing.

If you go directly into your database, can you see if you have a Theme with the name exactly ‘Health’? Try searching for your theme on the page first to see if that is showing up properly. Once you have that, then double check that the post that you have created actually has that Theme’s Unique ID attached to it.

The best way would be to send the ‘Theme’ to the page somehow, like a page URL. Then access the theme like that.

Does that make sense? Hope that helps. :blush:

The reason you can’t do that is probably when you did the create a thing workflow on the health page and the profile page wasn’t the same, you should add all themes on an option sets. add a datafiled called theme referencing the option sets you just created, so when a user creates a post on the health page, automatically the datafield of the theme is set to the health option set while that of the profile page will be set to whatever value the user chooses.

The Rg should have a search constraint where the datafield themeis equal to the health option set

If you want the health page to automatically reference the “Health” theme, just set the data content of the health page to be post and the data source(do a search for posts where you have added a constraint where the data field theme is equals to the theme option sets and all text elements or groups will simply reference that data source.

IF this isn’t clear, happy to go on a video call to explain further