CMS, Plugins

Framer Update: CMS Starter Plugin

Framer Update: CMS Starter Plugin

Framer Update: CMS Starter Plugin

Hunter

·

5:08

·

6.7K views

·

About this lesson

Introducing the CMS Starter Plugin, the fastest way to get started building your next CMS Plugin. The Starter Plugin comes with with the core features of a great CMS Plugin already included: data mapping, source selection, field mapping, error handling, and more. This functionality is intentionally minimal yet robust, distilling our learnings from building many CMS Plugins into a small set of code files. By swapping in your own data-fetching, most of the functionality will adapt automatically, leaving you more time to focus on customizing and shipping your Plugin. Learn More: https://www.framer.com/updates/cms-starter-plugin

🌞 Start for free: https://framer.link/yt

📚 Learn more at: https://framer.link/yt-academy

💎 Join the Community: https://framer.link/yt-community

🎉 Follow on X: https://framer.link/yt-x

https://www.youtube.com/watch?v=acFuYzW7h1Q&t=0s Intro

https://www.youtube.com/watch?v=acFuYzW7h1Q&t=22s CMS Plugins

https://www.youtube.com/watch?v=acFuYzW7h1Q&t=114s CMS Starter

https://www.youtube.com/watch?v=acFuYzW7h1Q&t=220s Example Plugin

0:00hey y' it's hunter in this video I'll0:03give you a quick overview of CMS plugins0:05in framer and show you the fastest way0:08that you can start building0:11them CMS plugins are super powerful for0:15accelerating your content workflows and0:17syncing your content that lives0:19somewhere else into0:22framer and with plugins there are two0:25main types of CMS collections managed0:28and unmanaged unmanaged are the normal0:32collections in framer that are primarily0:34edited by people and are used when you0:37want the source of truth of your content0:40to be inside a framer a managed0:43collection is when the collection is0:46primarily controlled by a plugin and0:48this is great for Content that lives0:50somewhere else and is synced into framer0:54for these collections we show your0:56plugins icon and have specific actions1:00like the sync and manage buttons in the1:03toolbar in code most CMS plugins share a1:07similar structure they start with1:09getting the1:11collection then setting the1:13fields and then adding The Collection1:17items and this code on its own is1:20technically a valid1:22plug-in so if we run it and create a new1:27collection1:31we just programmatically created a CMS1:35item and these same concepts are in all1:38CMS1:40plugins however going from this to a1:43full-fledged robust CMS plugin can be a1:47lot of work and this is where the CMS1:50starter plugin comes in1:53handy by starting a plugin the normal1:56way with mpm create framer plug-in but1:59adding a new parameter of starter with2:03the value CMS our plugin will start with2:05the CMS starter rather than the default2:08code template we'll wait for everything2:10to2:11install and then go to our2:16directory let's open our development2:20plug-in and create a new2:23collection and we can see we have a2:25basic CMS plugin here we have a source2:29selector2:31and if we click next we have a fully2:34functional interface for mapping your2:37content fields to your CMS2:41fields and if we click import the2:44example content is synced into the CMS2:47based on our field mapping selection and2:50with that functionality you've already2:52achieved the core goals of most CMS2:55plugins for managed2:57collections now it becomes more about3:00plugging in your own data and3:01customizing it as you'd3:04like so let's hop into the code the3:07starter is a minimal yet robust setup3:11that includes our learnings from3:13building many CMS plugins the main thing3:16to change to start working with your own3:18data is the data. TS file and scroll3:23down to get data3:25source in here is where the core data3:28fetching for the plug-in happens3:30so if we replace the Fetch with one for3:33our own data we'll be most of the way to3:36our own custom CMS plugin for a simple3:40example let's swap the fetch for an API3:43call to Blue Sky where we'll fetch the3:46latest posts from the framer account and3:49sync them into the CMS don't worry about3:52the Blue Sky details here essentially we3:55fetch the data set up the fields and3:58then map our item comes into the format4:01that the CMS API expects now we've only4:05changed this one file but if we go into4:07framer open our development4:10plugin create a new4:14collection go ahead with our posts4:17source and all the field mapping works4:20as we'd4:22expect and now we have our Blue Sky4:25posts synced into the4:27CMS this is of course a simple example4:31but you can see that with just a bit4:33more customization the CMS starter gets4:36you to a full-fledged CMS plugin way4:39faster than if you started from scratch4:42I hope you all enjoy using this to build4:44some fantastic CMS plugins either for4:47your team or for sharing on the plug-in4:50Marketplace thanks for watching and I4:52will see you in the next one

Watch on YouTube ↗

More in this topic

Framer Update: CMS 3.04:13
Framer Update: CMS 3.0
Framer Update14K views · 1 month ago
Ship websites with enterprise needs, at startup speeds0:33
Ship websites with enterprise needs, at startup speeds
Announcement8.3M views · 3 months ago
Framer Update: CMS Dynamic Filters7:25
Framer Update: CMS Dynamic Filters
Framer Update14K views · 3 months ago
Framer Update: CMS Components5:04
Framer Update: CMS Components
Framer Update11K views · 4 months ago
Framer Update: Empty States in CMS Lists3:23
Framer Update: Empty States in CMS Lists
Framer Update4K views · 4 months ago
Wireframer: Blogs and Changelogs with CMS3:40
Wireframer: Blogs and Changelogs with CMS
Framer Update5K views · 8 months ago
Level up your SEO with these awesome Framer Plugins2:54
Level up your SEO with these awesome Framer Plugins
Plugins5K views · 9 months ago
Importing from Figma and the Web to Framer (Fundamentals Lesson 14)12:55
Importing from Figma and the Web to Framer (Fundamentals Lesson 14)
Layout & Design71K views · 10 months ago

Create a free website with Framer, the website builder loved by startups, designers and agencies.