Back to User Guide

Modify, create, and publish a list view


Understand how list views work and how they impact your public facing website.

Managing views in the admin portal

When you are on a content item list view in the admin portal, you are looking at a "View". For example, the screenshot below is a "User Guide" list view for the content type you have been navigating through learning about Raytha.

Screenshot of a list view on the admin portal
Choose columns, filter, and sort order for a view
There are several important settings for managing a view that can be found under the "..." in the sub-navigation under the top tab. Under Columns, you can choose which fields from the content type should be displayed in the list for that view. Note that the search functionality will only search within the selected columns. You can also change the sort order and sort by multiple fields in ascending or descending order. The Filter option allows you to filter the view based on specified conditions.



Publish a view
Once you're satisfied with the configuration of your view, you can make it accessible to the public by clicking the Unpublished/Published link in the sub-navigation under the top tab and toggling the Is published selector. An example of a published list view is the blog list page at https://raytha.com/blog, which displays a list of posts. Another example is the Raytha User Guide at https://raytha.com/user-guide.

Under these Public Settings, you can choose the template and route path for the list view.

Animation of publishing a list view

When you publish a list view, the public version of the page retains the filter and sort order that you configured as an administrator. There are more advanced techniques you can employ when building templates such as allowing the visitor to search, filter, and sort. Those details are described in the Templates section of this user guide.

Multiple views
You get significant power out of Raytha by creating multiple views on the same data. Under the drop down menu for the View's top tab, you can duplicate the view, create a view, or see all views.

Screenshot of duplicating or creating a new view

You can publish or unpublish any number of views that you wish. Each view can have different sorting, filtering, and column settings, as well as a unique template and route path.

For example, you may want to display the same list of events in two different ways. You can create one view at the route path "/events" that shows a simple, sorted list of events, and another view at the route path "/events/calendar" that displays the events in a calendar format. By creating multiple views, you can present the same data in different ways to meet the needs of your audience.

Proceed to the next article by clicking the link under Continue learning below.


Continue learning