I am migrating a blog from Wordpress to Bubble. I have already created the DB with all the entries, categories… Is basically finished, but!
There is a banner that always shows up in both main blog and blog entries.
This banner has buttons that take the users to all the entries in a given category
The expected behavior is:
Main Blog:
You access the main blog page, where you will see all the entries of the blog, no filter at all, and the banner with the buttons with shortcuts for the categories. Let’s say the blog has 4 categories: cats, dogs, piggies and birds.
You click any of the buttons in the banner and now the entries will be filtered to show only the entries of the category you clicked
Blog Entry page:
You are the the entry page, you are reading an article that’s related to the dogs category. There is the banner with the buttons that I mentioned above.
You click the button and it takes you to the main blog page, with the entries filtered with the category of the button you pressed.
Instead, what happens when you click is that user is being forwared to the main blog but with no filters of the category the user clicked.
Here is my workflow:
Notice the orange workflow is the one I am trying to get to work.
Here is my banner, it works perfectly in the main blog page, but in the entries page is not working.
I think you can do this with URL params instead of sending a list of things when navigating to a page.
So you can send a url param that corresponds to the clicked button when you navigate. And have the constraint in the blog post to be categories = get data from page url
uhh sounds interesting!
So, basically I send the parameter from the blog entry page with a workflow in the button, then i should create another workflow that reads the parameters i send in the main blog, correct? or is this done in a different way?
Thanks for the help!
yeah, in each of the buttons that already have the navigation action, clear the Data to send field. Then check the Send more parameters to the page box
And then add the key you created in the navigation workflow.
So what will happen now is that when you click a button, it goes to a page and the page url will have a certain url parameter. The Blog RG will sort it’s items based on that RG parameter.
Just be aware, URL parameters are not good for SEO purposes. If your blog doesn’t need to help generate organic search traffic and therefore SEO is of no concern, the use of URL parameters is fine…if however, you want SEO and organic search traffic, you’ll not want to use URL parameters, and instead use the URL path.