Creating a similar campaign listingSOLVE
Aug 17, 2020 3:51 AM
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!
Solved! Go to Solution.
Aug 19, 2020 9:56 AM
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 https://developers.hubspot.com/docs/cms/features/serverless-functions
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
Located in Michigan, USA
Strategic marketing consultant and skilled web designer specializing in the manufacturing industry to increase revenue through driving website leads and brand awareness.