Bug #22770
closed[No Title] shown when editing a record on root level
0%
Description
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)
Files
Updated by Reinhard Führicht over 14 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.
Updated by Chris topher over 14 years ago
The same error occurs when editing a BE user.
Can you have a look at that, too?
Updated by Soren Malling over 14 years ago
I can confirm that the attached bug fixes the issue with "Page Properties"
And I can confirm that the same issue is present when editing a be_user
Updated by Reinhard Führicht over 14 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.
Updated by Chris topher over 14 years ago
When creating a new record/page the headline could just say "New page/content/news/whatever". After saving, the entered title could be shown.
Sounds good! Go ahead!
Updated by Reinhard Führicht over 14 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.
Updated by Jo Hasenau over 14 years ago
Anything else would be just confusing - I tested it with the current trunk and the title said "Root" while I was editing a page on the next level - so Reinhard's proposal seems to be only useful way to fix this misleading behaviour.
Updated by Reinhard Führicht over 14 years ago
Thanks for the feedback. I will give it a try and post it on the core list.
As I see this as a bug, I hope this gets fixed for 4.4.
Updated by Reinhard Führicht over 14 years ago
version 5 contained changes not belonging to this issue. Please ignore v5 and use v6 instead.