We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Nov 23, 2020 1:15 AM
Hi,
I am completely new at Hubspot and wonder when HubDB can/should be used in the best way.
For the website I have to make I have 3 almost identical page types of cases/news/events. Each type has its own overview page of all existing pages of that type. Each case/news/event also has its own detail page.
On other pages of the website there are references to these pages with an image, a short description of the case/event/news and a cta to the detail page.
What is the best way to set up these pages. Does HubDB qualify for this because I have data that needs to be displayed on multiple pages?
Kind regards,
Michiel
PS: if my question was not clear enough, you can always take a look at https://www.tobania.be.
Solved! Go to Solution.
Nov 23, 2020 4:09 AM - edited Nov 23, 2020 4:11 AM
Hello @Michiel_Tob,
HubDB is a good use if you have the same content multiple times. Let's take the events page for example. You usually have a list- (overview) and a detail page. On the overview you will see the event name, date, a short text (trimed), image and a button. On the detail page you want to give the user more information like: Event name, date, full text, image and maybe a form or a button.
You just need to update the HubDB and the listings and detail will be generated automatically.
Your cases/news/events are a perfect fit for a HubDB pages.
This could be a good reference (https://developers.hubspot.com/docs/cms/guides/building-dynamic-pages-with-hubdb)
- Chris
Nov 23, 2020 4:09 AM - edited Nov 23, 2020 4:11 AM
Hello @Michiel_Tob,
HubDB is a good use if you have the same content multiple times. Let's take the events page for example. You usually have a list- (overview) and a detail page. On the overview you will see the event name, date, a short text (trimed), image and a button. On the detail page you want to give the user more information like: Event name, date, full text, image and maybe a form or a button.
You just need to update the HubDB and the listings and detail will be generated automatically.
Your cases/news/events are a perfect fit for a HubDB pages.
This could be a good reference (https://developers.hubspot.com/docs/cms/guides/building-dynamic-pages-with-hubdb)
- Chris
Nov 23, 2020 9:13 AM
Nov 23, 2020 3:51 AM - edited Nov 23, 2020 3:52 AM
Hi @Michiel_Tob ,
I don't think there is a specif time to use HubDB, like there aren't fixed rules or laws about it 🙂
Comparing vs a blog, I like to use HubDB when most of this points doesn't match:
As you can see, even with this, there is not an exactly breaking point for me but a gradient where something can be in between.
So in your case, I would say that probably:
Blogs: Cases & News
HubDB: Events
For linking those listings to other pages you are going to need:
hubdb_table_rows("test_table", "foo=bar&orderBy=foo")
For the blogs, you can either use the default:
related_blog_posts blog_ids="3241539189,3261083894", limit=6, blog_authors="Frank Smith"
or build your own with:
blog_recent_tag_posts('default', 'marketing-tips', 5 )
Best,
G
If this answer helps you to solve your questions please mark it as a solution.
Thank you,
|
Nov 23, 2020 9:19 AM
Thank you for your reply @Gonzalo ,
I'm going to test if it can be done your way so I can see which method is best for what I need.
Greetings,
Michiel