Creating a similar campaign listing

I have already used a module to display related blog posts on a topic by using their tags. Now I’m looking for a module that shows me content elements of the same campaign.

Does anyone know if such a module exists or does anyone have experience with it?

Thanks for your help and best regards!

Annalena

Thank you for reaching out to the HubSpot Community @AnnalenaStrüver !

I will tag in some subject matter experts here: @Chris-M and @Jake_Lett , could you please share your knowledge for @AnnalenaStrüver ?

Hi. It looks like this can be done but it would require using the API. I assume your site is built on the HubSpot CMS and not WordPress or other platform correct?

If this is the case, I think this might work but I have never tried it to be certain.

1. Setup a serverless function to keep your API key secret Serverless functions for the CMS - HubSpot docs

2. https://legacydocs.hubspot.com/docs/methods/blogv2/get_blog_posts adjust the endpoint to include the campaign id to adjust the query

3. Format the output in the style you require


Jacob Lett

Freelance HubSpot CMS Developer & Web Designer



28844i368E9AAC739341A8.png

Located in Michigan, USA

Get a free estimate now ›

Hi. Yes, our website is built on the HubSpot CMS. We will try to implement it with your steps.

Many thanks and best regards

Annalena