hsrai
1
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
hsrai
2
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
hsrai
3
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.
hsrai
4
I noticed that title is defined as List
somewhere. Can anyone tell where it is assigned “List” value.
Will removing “title or” have any side effect, as it looks that by removing it, page header is:
List like:
Article List
How you all manage it or are you Ok with heading just “List” for all “list views” of all docTypes in web page?
PS: In quoted text there was some typo, which I corrected.
hsrai
5
Breadcrumb on list view of web page, is:
My Account > List
should not it be Module > docType List
?