You may recall that the original Slater had access controls for projects and files. We didn't want just anyone going in there and rewriting our Javascript. However, managing access for teammates became cumbersome (I even added a "god mode" to give myself access to any project or file). Since we generally trusted each other and never had issues, we decided to leave it out of the latest version of Slater. That said, we understand that some teams work differently, and maintaining control can be important. Workspaces can get cluttered, and access control can help. So, we’ve brought back project access controls, but only if you need them. Here’s a brief demo of the new functionality and instructions on how to turn it on. This functionality is live so go check it out if you need to control access. Community library scripts👣 Track User 🥅 Filter Out Selection 👱🏼♂️ Wes Pagination Have you added a useful script to your library? Share it with us! -- Javascript 101: LocalstorageDo you use localstorage? It's a tool that we find ourselves turning to more and more as we work on complex Webflow builds. For example, we used localstorage a lot on ask.edgarallan.com. Localstorage is simple to leverage. Let's hit the key concepts: What is localStorage? localStorage is a web storage object that allows you to store data in the browser. Unlike sessionStorage, which is cleared when the session ends (e.g., when the browser is closed), localStorage persists even after the browser is closed. Basic Methods:
Examples: 1. Storing Data
2. Retrieving Data
3. Removing Data
4. Clearing All Data
To finish, let's show a solution to storing and using a user's theme performance:
Do you have any localstorage solutions that you want to share? The Community Library has some localstorage scripts that you may find helpful. -- Your projects, supported by SlaterOur friend at Renflow Designs built a beautifully smooth site for saltmarshcounselling.ca. Go check it out!
🤙 the Slater Team If Slater helps you create better websites, please support the team behind it.
|
Slater resources, updates and community activity
Do you get confused when undoing (cmd + z) in Slater? We auto-format your code on save. The auto-formatting updates your code, and those updates get pushed into the undo stack. You can now improve your workflow by formatting the code when you choose—not just on save. To gain more control over when your code formats: Turn off auto-format code in the Code Editor Settings Use cmd + shift + f to format your code We added a handful of other improvements: Console logs and debuggers are now...
Last week, we announced that CSS updates were on the way—and now they're here! You can now generate CSS files just as quickly and easily as JS files. In the video below, we give a quick demo of the new functionality. If you have a Smart Script loaded in your project, you can instantly add CSS. In the demo, we also show how to add CSS in the Webflow designer. Give it a try and let us know what you're building! Community Library 🖍️ Text Highlight ColorCSS code for custom text selection. 🅰...
Do you use Slater for CSS? CSS support in Slater has always been somewhat of an afterthought—JavaScript is our love language! But sometimes, you need a simple way to add CSS to your project. Maybe you want to write a complex grid or use a CSS property that Webflow doesn't support. That's why we've decided to make CSS a first-class citizen. We considered launching the new CSS functionality today, but we want to test it a bit more. Expect it early next week. To prepare for the launch, let's...