CMS Attributes + External Data - Part 1
HTML-код
- Опубликовано: 10 май 2022
- Part one of our deep dive on CMS Attributes and external data.
-----------------------------------------------
// RESOURCES FROM THE VIDEO
Source code:
github.com/finsweet/attribute...
Live site:
fs-attributes-examples.webflo...
Webflow read-only:
preview.webflow.com/preview/f...
Docs:
www.finsweet.com/attributes/a...
www.finsweet.com/attributes/a...
www.finsweet.com/attributes/a...
-----------------------------------------------
// ABOUT US
We’re Finsweet - a Webflow enterprise partner, badass product creator, and educational content powerhouse. We are taking Webflow to a new level and sharing everything with you along the way!
🙌 Join our community - finsweet.com/fin-pro
🛍 Shop our merch store - finsweet.com/merch
💪 Superpowers for your Webflow website - finsweet.com/attributes
🧰 Your toolkit for Webflow - finsweet.com/extension
-----------------------------------------------
// SOCIAL
Facebook: / thatsfinsweet
Twitter: / thatsfinsweet
Instagram: / thatsfinsweet
Dribbble: dribbble.com/thatsfinsweet
Behance: www.behance.net/thatsfinsweet/
Webflow: webflow.com/team/Finsweet/
-----------------------------------------------
Thanks for your support! 🤟
Now, No-Code meets Code. Great stuff Alex and Finsweet. This opens up a lot of possibilities for back-end devs.
When our powers combine! 💪
Alex can talk code all day and it will never be boring 🔥🔥 greattt stuff!!
We all agree!
Oh god, this day has finally come 😵 So much to learn from this one. More content like this 🔥
We're just warming up
Wooooo, Finsweet killing it as always, much love for ya!
Thank you Frank!
This is so exciting! Can't wait to put this into use
Looking forward to seeing what you build with it.
Mind blown... thanks this is so helpful. I'm going to start using this asap.
You guys never disappoint 🔥🔥🔥
💪
I want to learn js from Alex 🎉
Get in line!
With all of the new advancements in Finsweet and Webflow in the past year, does this still work the same way?
This is awesome, Alex! Quick question, is this AJAXy in that the external source data can change and Attributes can just pick up on that immediately and update the list?
Hey Glenn! I'm afraid I didn't understand the question, could you rephrase it? Thanks!
If the external data changed you would just have to refresh the page for the updated data to be seen. It's not going to be actively listening for the external data to change, however you could do something like that using websockets if you wanted to.
thank you so much! It is a good way. I think, can this way work with Slider components? I need to dynamic with external API + webflow?
Jesus, this is insane !
You know how we do
This is so hype! Is it possible to hook into the pagination events to fetch more data from the API and append it to the CMSList.items array? Or does pagination require fetching all data before rendering the list?
You can listen to listInstance.on('switchpage', (targetPage) => {}) to detect when the user navigates through the pages using pagination mode, and then you can just add more items using the listInstance.addItems() method.
I'll update the docs to add this info!
@@alexiglesias_me looove that
Hey guys, thank you for this, very cool stuff! But, I need to ask, what do you mean is the purpose of "replacing" existing CMS collections of data with an external API's data? Wouldn't it be better to just code a solution to display these directly? Or is it to be able to use your attributes-tools on them maybe?
Same question here
What if item in external JSON data has multiple categories for one item, like a: "t-shirt, polo, underwear" etc. will it work?
How does this effect SEO?
Great! Thanks! Does this really mean we are no longer limited to 2.000 or 10.000 records inside the CMS?
You can load as many items as you want from an external source
Possible to make a webflow website with headless Magento with this?
I love you
We love you too!!!
This is very great and insane, but the page is not crawlable for Google... :'(
Hey Alain! Of course when your rendering external data in the frontend, you'll always give Google a harder time to index your content (although nowadays Google knows how to run JavaScript and does it from time to time).
If your main priority is SEO for the data in the Collection List, then you should consider moving it into the native CMS instead of fetching externally!