Working with content views
#Overview
Content views are basically the way our content is displayed in the content editor. They are divided into:
- Default views: Generated automatically. They show the default columns configuration and without any filter criteria applied.
- Custom Views: Generated by users. They show a specific columns configuration and filter conditions, selected and saved by the user.
#What you can do
Content views
- You can use content views to easily navigate the content in the Content editor
- You can create custom content views to easily access certain content
- You can create view groups to organize your custom content views
#Update default views
When making changes to the content view - by configuring columns, or adding filters - you can save this configuration as the default view for all users of the project.
To do this, click the View
dropdown at the top-right of the screen to display the options inside, and select the Update view
option.
Update default view
Default views are also reflected inside of connection models when linking other content models.
#Custom views
The default content views are the system views which list all content entries that have been created based on the respective content models. Custom content views are filtered for specific content entries.
After you customize your content table using the three features mentioned above, you can save these customizations using the Content View. This can be a helpful way of organizing your content and making it easier to find.
For example, as a content editor if you are only editing Blog posts written by Annie, you can create a content view called “Annie's Blog Posts.” This will give you quicker access and let you avoid scrolling through content to find what you are looking for.
#Create a custom view
- Navigate to the Content editor and select a model.
- Create a change to the view by either filtering the content in the search bar at the top, or showing/hiding the columns.
- Click the
View
dropdown at the top-right of the screen to display the options inside, and select theSave as new view
option. - Provide a
Name
and, optionally,Description
. - Click
Add custom view
to save.
#Update a custom view
Update custom view
- Navigate to a custom view in the Content editor.
- Next to the title of the content view, click on the context menu to display the options inside and select
Update custom view
. - Apply your changes and click
Update
to save.
#Delete a custom view
Delete custom view
- Navigate to a custom view in the contextual sidebar of the content tab.
- Next to the title of the content view, click on the context menu to display the options inside and select
Delete custom view
. - Confirm you want to delete.
#Organizing custom views
Reorder custom views
- Hover your mouse next to a custom view.
- Grab the six-dot handle to the left of the label.
- Drag and drop to change the order.
#View groups
Custom View Groups let you create a group of Content Views. These can be helpful when working in larger teams as you can create a Custom View Group that contains all of the content for each person. These custom View Groups let team members create their custom views and save them all in one place.
In using these features to customize your content tables, teams will be able to set up best practices, optimize their time and experience in Hygraph and focus on creating great content.
View Groups allow you to customize the presentation and selection of content visible to an editor. You can show or hide different columns and filter which content should be included in the group. This allows for an optimized editorial workflow, helping editors to quickly find the content that needs their attention.
View groups
#Create a view group
Create custom view group
- Navigate to the content editor.
- Click on the folder icon next to Content on the contextual sidebar to add a new view group.
- Provide the
Name
. - Click
Add view group
to save.
Save custom view group
#Edit a view group
Edit a custom view group
- Find a custom view group in the contextual sidebar.
- Click on the context menu and select
Edit view group
. - Apply your changes and click
Save
to confirm.
#Delete a view group
Delete a custom view group
- Find a custom view group in the contextual sidebar.
- Click on the context menu and select
Delete view group
. - Confirm the deletion.
#Organizing custom view groups
Reorder custom view groups
- Hover your mouse next to a custom view inside a view group.
- Grab the six-dot handle to the left of the label.
- Drag and drop to change the order.