# Create a slug system
This guide will explain how to create a slug system for a Post, Article or any Content Type you want.
# Create attributes
To start building your slug system you need a
string field as a base for your slug, in this example we will use
You will also need another
string field that contains the slugified value of your
title, in this case we will use
# Configure the layout for the content editor
Let's configure the layout of the edit page to make it more user friendly for the content editor.
- Click on the Article link in the left menu.
- Then on the
+ Add New Articlebutton.
- And finally on the
Configure the viewbutton.
Here we will be able to setup the
- Click on the
- At the bottom of the page, edit the placeholder value to
Generated automatically based on the title.
- And click OFF for Editable field option.
- Don't forget to save your updates.
# Auto create/update the
For that you will have to install
slugify node module in your application.
When it's done, you have to update the life cycle of the Article Content Type to auto complete the
# Fetch article by
Then you will have to be able to fetch your Articles by this slug.
You will be able to find your articles by slug with this request