Utilizing dynamic arguments
Views can be configured to accept contextual filters. Contextual filters allow you to provide a dynamic argument that modifies the view's output. The value is expected to be passed from the URL; however, if it is not present, there are ways to provide a default value.
In this recipe, we will create a new page called My Content, which will display a user's authored content on the /user/%/content route.
How to do it...
- Go to 
Structureand thenViews. This will bring you to the administrative overview of all the views created. Click onAdd viewto create a new view. - Set the 
View nametoMy Content. - Next, we will modify the 
Viewsettings. We want to displayContent of the type Alland leave theTaggedwith empty. This will allow all content to be displayed. 
Â
- Select 
Createa page. Keep the page title the same. We will need to change the path touser/%user/content. Click onSave and editto move to the next screen and add the contextual filter. 
Note
When building a views page...