How can I create a fixed sidebar with scrollable CMS powered projects and a selected state for the current project in Webflow?

Published on
September 22, 2023

To create a fixed sidebar with scrollable CMS-powered projects and a selected state for the current project in Webflow, you can follow these steps:

  1. Set up your CMS collection: Create a CMS collection called "Projects" and add the necessary fields for your projects, such as project name, description, images, etc. Populate the collection with your project data.

  2. Design your sidebar: Start by designing and styling your sidebar element. Give it a fixed position by selecting it and going to the Position tab in the right sidebar. Choose "Fixed" from the Position dropdown menu and set the left or right position as desired. Adjust the dimensions and styling of your sidebar according to your design preferences.

  3. Add a dynamic list: Drag and drop a dynamic list component inside your sidebar. Connect it to your "Projects" CMS collection by selecting the collection from the dropdown menu in the right sidebar. This dynamic list will display all the projects in your collection.

  4. Customize the dynamic list: Customize the layout and design of your dynamic list by selecting it, then accessing the Design and Layout tabs in the right sidebar. Set the desired style for each project item (e.g., background color, text formatting).

  5. Create a link block: Inside the dynamic list, add a link block. This link block will represent each individual project in the list. Customize its style as desired.

  6. Add dynamic content: Within the link block, drag and drop elements to display the project information. These can include text elements for the project name and description, as well as image elements for project thumbnails or featured images. Connect these elements to the appropriate fields in your CMS collection by selecting them and choosing the corresponding field in the right sidebar.

  7. Set the selected state: To indicate the currently selected project, you can create a selected state for the link block. Select the link block and go to the States tab in the right sidebar. Click on the "+" icon to create a new state, then customize the style to differentiate the selected state from the default state (e.g., change the background color or add an underline).

  8. Add interactions (optional): If you want to enhance the user experience, you can add interactions to the link blocks. For example, you can create a mouse hover interaction to highlight the link block when users hover over it. Use the Interactions panel in the right sidebar to set up these animations.

  9. Test and publish: Preview your website to see how the fixed sidebar with scrollable CMS-powered projects and the selected state for the current project looks. Make any necessary adjustments to achieve the desired design. Once you're satisfied, publish your website for the changes to take effect.

By following these steps, you'll be able to create a fixed sidebar with scrollable CMS-powered projects and a selected state for the current project in Webflow. This approach allows for easy management and scalability, enabling you to add, edit, and remove projects from your CMS collection without having to manually update the sidebar.

Additional Questions:

  1. How to create a fixed sidebar in Webflow?
  2. Can I use Webflow CMS to display dynamic content in my sidebar?
  3. How can I create a selected state for a link block in Webflow?