Creating a similar campaign listing

SOLVE
Highlighted
Occasional Contributor

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

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
Solution
Top Contributor

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


Jacob Lett

Freelance HubSpot CMS Developer & Web Designer


bootstrapcreative-horizontal-trim.png

Located in Michigan, USA

Get a free estimate now 


Jacob Lett
Marketing Consultant
Strategic marketing consultant and skilled web designer specializing in the manufacturing industry to increase revenue through driving website leads and brand awareness.

View solution in original post

3 Replies 3
Highlighted
Community Manager

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

 

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

Reply
0 Upvotes
Highlighted
Solution
Top Contributor

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


Jacob Lett

Freelance HubSpot CMS Developer & Web Designer


bootstrapcreative-horizontal-trim.png

Located in Michigan, USA

Get a free estimate now 


Jacob Lett
Marketing Consultant
Strategic marketing consultant and skilled web designer specializing in the manufacturing industry to increase revenue through driving website leads and brand awareness.

View solution in original post

Highlighted
Occasional Contributor

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

Reply
0 Upvotes