I am building a custom module in HubSpot that will have a button that will open a page that displays all of the blog posts that have a specific tag. I have the module built and used the “Tag” field. the user should then be able to pick their desired tag from the drop down but it is not working properly. I have this piece of code here:
I was thinking that I could just drop the field value from the Tag field into the “website” section of the code but its giving me a 404 page error. The compiler is giving this error:
since Hubl is serverside rendering you can’t pass data from the frontend(e.g. user selection) directly to it.
If you would like to provide your marketers/page editors the ability to select a certain tag and therefore build buttons to the tag-pages. That’s definetely possible.
Double curly-braces don’t work inside other curly-braces. So this code:
Thanks for the reply. I think I understand what you are getting at. But I have a couple of questions.
What did you mean by this comment: If you would like to provide your marketers/page editors the ability to select a certain tag and therefore build buttons to the tag-pages. That’s definetely possible.
That sound like what I am trying to do. I would like them to select from a drop down in the module (see “Module Image 1” in the attachment). Then the button in the module would send them to a page that as all of the blog posts with that tag. Similiar to the attached image “blog tag page 1” attached.
If you have ideas as to how to accomplish this I would appreciate your help.
Also, after messing with it a bit more today I have added a piece of text with the code below to show what the drop down is returning. See Module Example 1 attached.
After messing with it and removing the {} brackets and having the code like this:
You were right on the money. I didn’t have Slug selected as the type of tag. Also your recomendation about removing the quotation marks was correct as well. Also, I didn’t have any posts that were tagged with the one I was selecting and that was also causing an issue. This has fixed all my issues thank you so much for your time and help!.