Can I have blog posts in a CMS collection in Webflow and still have their URLs in the root directory?
Published on
September 22, 2023
Yes, you can have blog posts in a CMS collection in Webflow and still have their URLs in the root directory. Here's how you can achieve that:
- Create a new CMS collection for your blog posts in the Webflow Designer.
- Add all the necessary fields to your CMS collection, such as "Title," "Content," "Publish Date," and any other information you want to include for each blog post.
- Design your blog post template using the CMS collection fields to display the blog post data.
- Go to your CMS collection settings and configure the URL structure for your blog posts.
- By default, Webflow will generate URLs like
/blog/post-title
. - To have the URLs in the root directory, you will need to modify the URL structure.
- In the CMS collection settings, click on the "Add Field" button and create a new Text field called "Slug."
- The "Slug" field will be used to manually set the URL of each blog post.
- In your blog post template, bind the "Slug" field to the URL in the link settings.
- For example, if your "Slug" field is "{{slug}}," the URL should be set to
/{{slug}}
. - This will ensure that each blog post has a unique URL in the root directory.
- Publish your site to make the changes live.
By following these steps, you can have blog posts in a CMS collection in Webflow while still having their URLs in the root directory. This allows you to create a clean URL structure for your blog posts and improve the visibility of your content in search engines.
Additional Questions:
- How do I create a CMS collection in Webflow?
- Can I customize the design of my blog posts in Webflow?
- Is it possible to add categories or tags to my blog posts in Webflow CMS?