Page heading of web view of listing

If we try to have web page of any Doctype like:

https://frappeframework.com/docs/v14/user/en/tutorial/portal-pages

then template article_row.html produces the listing of items in that doctype. However on top of list there is a big List as the title of page.

For every DocType this remain the same i.e “List”.

How we can change it, custom for every DocType or " {{ Name of DocType }} - List", for example in case of DocType “Article”, it should be:

Article - List

Found it. Following line is responsible for this:

i.e 8th line of frappe/www/list.html

<h1>{{ title or (_("{0} List").format(_(doctype))) }}</h1>
1 Like

If I understood the code correctly, it should render:

Article List

but it render only “List”.

Why {0} is not working. “title” filed is not there. If we remove title or ad keep only (_("{0} List").format(_(doctype))), then it render as:

Article List.