[No Title] shown when editing a record on root level
For records on root level the title of the record is not shown, when I edit the record.
E.g. the page title isn't shown, when editing page properties of the root page. (Have a look at attached screenshot.)
The field for pagetitle is filled and is shown in the pagetree.
The title is also displayed correctly, when the record I edit is not on root level.
(issue imported from #M14545)
#1 Updated by Reinhard Führicht over 9 years ago
What should this headline show anyway?
I found out the following until now:
- Shows title of the page if creating, editing records (e.g. tt_content)
- Shows title of the parent page if creating a new page
- Should show page title of the current page if editing a page.
Does this even make sense?
If yes, the problem you described should be easy to fix. See attached patch.
It may not be the best solution, but at least it fixes the problem.
#4 Updated by Reinhard Führicht over 9 years ago
It happens when editing a be_user, be_group, basically anything on the root page (PID:0).
When editing a record, the title of the parent page is shown as the headline. When editing a record on root level, there is no title, because a parent "page" doesn't exist. But which headline to display in that case?
In my opinion, it would be cool to display the title of the currently edited record. By title meaning the label field set in TCA. When creating a new record/page the headline could just say "New page/content/news/whatever". After saving, the entered title could be shown.
#6 Updated by Reinhard Führicht over 9 years ago
Version 2 added.
When creating a new record, the label will be: Create new [tablename]
When editing a record it will be: Edit [recordtitle]
Please test yourself and see if it works. I am quite in a hurry right now, so I hope I didn't make any mistake in the code.