CMS

Framer Update: New Conditionals & Transforms

Framer Update: New Conditionals & Transforms

Framer Update: New Conditionals & Transforms

Hunter

·

5:45

·

12K views

·

About this lesson

This update brings new functionality and improvements to our Conditional & Transforms features. With the addition of the Is Set conditional for Formatted Text fields, you can adapt your layout based on when your CMS Content exists. The new Color and Number Transforms enable you to create layouts that dynamically react to your content and properties by changing color, rotation and more. Along with this, we’ve fixed some bugs and made improvements across the CMS. Watch the video to learn more, or remix our example file here: https://chirp.framer.wiki/

🌞 Try Framer for free: https://framer.com

🎉 Follow on Twitter: https://twitter.com/framer

💎 Join Community: https://www.framer.community

0:00hey y' it's hunter in this video I'm0:02excited to show you the latest0:04conditionals and transforms that we've0:05added to framer they allow you to0:08dynamically change your layouts based on0:10different properties and content you0:11have on your0:12website I'll show you how it works in0:14this demo file here we have a website0:17for a local bird conference and a0:19schedule with a list of events that come0:21from content in our CMS and what we will0:24do in this video is make the layout of0:27these items in the schedule respond0:29based on CMS content let's open up the0:32CMS to take a look at the structure of0:34our0:35content if you click on one of the0:37events we'll see they have a title a0:39slug the type of event they are which0:42can be either a talk a workshop or just0:44a casual event and then we have three0:47location options big tent Rolling0:49Meadows and cheerful0:50cave then we have a time and an about0:54section now that we know the structure0:56of our content let's head back to the0:58canvas to make our layout resp on to it1:01the first thing I noticed on our page is1:03that it could use a bit more color and1:05it's hard to differentiate between talks1:08workshops and just casual events let's1:11fix this by showing a different color1:13for each event type if we zoom in and we1:16select this little element on the1:19left we can see its current fill is set1:22to the primary color if we click the1:24fill Title Here we can go to set1:26variable go to our Field named type and1:29use a new convert1:31option what convert option does is it1:34allows us to say when the value from the1:36CMS equals talk in this example set the1:40value to this color so for instance when1:42it's set to talk let's make it Pink if1:46we go back we can add another1:50condition so that when it equals1:52Workshop we'll set it to1:55purple then what the fallback means is1:58anytime it doesn't equal one of these2:00use this color so for the Casual events2:03and maybe any other events that we2:04haven't set up yet let's use2:08black let's zoom out to see how it2:12looks nice you'll see we have pink for2:15our two talk items then purple for2:18workshops and that blurred black for2:22casual now we can set the time and2:24location using prefix transforms if we2:28go to time we can assign it to the2:33content and we can go2:35time and we want to add a prefix so we2:40can go time space and because location2:44is an option we can go to set variable2:47location display2:50option and then on top of that because2:52we can change transforms we can add a2:55prefix and we can say location space3:00now one more thing I want to do here is3:02show the capacity of each location we3:05don't want to update all our CMS items3:07with the capacity let's just put it3:09right into our design and make it3:11respond based on the location we can3:13make this a stack then create a new text3:18layer then we'll access the transform UI3:20Again by clicking content set variable3:23location convert3:26option this will set different content3:28for our text layer based on what the3:30location field of this current CMS item3:33is equal to when this collection item3:35has a location of big tent I want3:38capacity to say 200 when it's set to3:42Rolling Meadows I want3:45500 and we'll add one more condition for3:47cheerful cave and then we'll say this3:50holds 503:53people and then on top of this we can3:55add a3:57transform and we can say4:01capacity space and let's add an M Dash4:05so it fits in now with this transform we4:07have everything responding to our4:09content and we didn't have to update any4:10of our CMS items it just responds4:13exactly how we'd like it now I'll show4:15you one more new way to make your layout4:17respond to your content if we preview4:20our site we can see that our content is4:23starting look pretty good but if we4:25click on the lunch for instance we'll4:27notice it doesn't have any content4:29because it's just lunch whereas the4:31other events have4:33descriptions what we can do to fix this4:36is use a conditional check to see if4:38there is a description for each event4:41and then conditionally show the4:43information button let's do that now so4:45if we close our4:47preview we can go to the info button and4:50this is where our information overlay4:52lives and all we have to do is go down4:55to4:56visibility set variable about5:01is set and that's it this condition will5:05set the visibility of the info button to5:07yes only if about content exists in the5:10CMS item if we preview our site we5:13scroll down you'll see lunch no longer5:16has an information button and only the5:18events that have information show5:21that and that's been an overview of the5:23new conditionals and transforms in5:25framer we can't wait to see how you use5:28them on your own sites thanks for5:30watching and I'll see you next time

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
On-Page Editing in Framer: A powerful new way to update Framer sites, right in the browser.5:12
On-Page Editing in Framer: A powerful new way to update Framer sites, right in the browser.
CMS10K views · 10 months ago
Framer Event — Introducing On-Page Editing7:29
Framer Event — Introducing On-Page Editing
Event12K views · 10 months ago

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