In this episode we are going to look over the List View and Template menus to understand their purpose and how to utilize them.
To start, let’s go to the list view menu. As you can see we are presented with one checkbox that allows us to “Enable List View” … before we can take advantage of this feature we will need to add a few more document types and content pages.
Since you already know how to create doc types and content items, I have gone forward and created them. As you can see we have two new Document Types: News Area and News Item. Each have a tab and a few unique properties defining what type of content we will store.
If we look at the Permissions menu on the Home Page document type, we will see I have allowed the News Area document type as one of the allowed child node types. Additionally, if we go to the Permissions menu of the News Area document type we can see I have selected the News Item doc type as the only child type allowed.
Moving to the content section we can see that I have created a News node under the Welcome Home Page with various News Articles underneath.
As you may notice this list could quickly become unmanageable as we grow our news articles on the website. Luckily we can utilize the List View
Let’s go back to our Setting section and choose the News Area Document Type. Now we will go to the List View menu and select the checkbox to “Enable List View”
With the list view enables there are two options. We can use the default list view, or we can customize our own list view.
We will cover customizing list views in a later chapter but for the time being, know that we have the power to update settings such as page size, order by, layouts, and more.
We will switch back to the default list view and hit save.
Now when we go to our content section the long tree is no longer visible and instead when we click on the News node we see a new tab called “Child items” that displays a list. If we want to, we can even change the layout.
Next we will briefly take a look at the Template menu on a document type.
Templates will be covered in the next chapter so I don’t want to spend too much time on this menu but keep in mind that a document type can be associated with more than one template.
When we created our document types, by default, a related template was created to our document type. In the template menu we can add other allowed templates to be used with a certain document type.
Let’s review. The list view menu allows us to create a more organized interface for our content editors so our content tree does not become unmanageable. Additionally, the template menu allows us to add additionally templates to be used with a certain document type.
This is the most important thing you need to learn about Umbraco. Understanding the concept of Document Types and how to work with them is the foundation of your Umbraco knowledge.