Streaming live at 10am (PST)

API, HTML embed, display


#1

Is it possible to use the HTML embed to generate code imported from a spreadsheet?

Looking to display logo’s with clearbit’s company logo API.

An example call “<img src="https://logo.clearbit.com/https://sendtask.io/">

It works in an environment as you can see here: https://codepen.io/nogoodusernames/pen/YLxKVx

But does anyone know how this can be done in webflow?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)


#2

Hi @tohmasch, have you tried to past the img tag in the custom html embed widget? https://university.webflow.com/article/embed

Place embed on page, paste code into embed, publish site.

I hope this helps!


#3

Hi @cyberdave,

Yes, this way works. But I’m wondering if there is a way to do it dynamically?


#4

hi @tohmasch, well, you can change the url by using an collection field in the embed: https://university.webflow.com/article/how-to-use-dynamic-embeds-on-your-webflow-site

You can replace the url in source code with a field of the logo you wish to show on the page.

You can place an embed into a collection list, then add your source code and replace the domain name you are looking for with the cms field value.

Here is how to import items into a cms collection: https://university.webflow.com/article/importing-collection-items, this will let you create a collection from your spreadsheet, to use as values in your embed.


#5

Hey dave,

That was a great suggestion. Solved my problem. Thanks so much!