cms
cms copied to clipboard
[5.x]: Matrix block/entry type for assets or related entries hyperlink issue
What happened?
Description
When you have an entry type for assets or related entries within a Matrix field the title is displayed and is a hyperlink. But if you click the hyperlink it loads the individual asset or entry and replaces the current entry that you were editing. When you finish editing the nested entry and save it you are now in the Assets or Entries listings. This will be very confusing for content editors.
But if you click on the three dots (action menu) you get the option to 'Edit entry', which opens in a slideout, so you can do the edits and the slideout closes and you carry on within the entry you were working on.
One option would be to remove the hyperlink on the Title, then editors would have to use the action menu and be more aware of what happens next. I can see people clicking the Title text without knowing what will happen and then being totally lost and not know how to get back to the entry they were editing. Alternatively, make the hyperlink open a slideout. At least if people click it by mistake not knowing what will happen they will get the option to Cancel and return to where they were.
Steps to reproduce
- Add an Entry Type that includes an Assets or Entries field to a Matrix field.
- In an entry with the matrix field, add an asset or entry block/entry type and select an asset or entry.
- In the edit form/page the nested asset or entries Title will be a blue hyperlink.
- Click the Title link.
Expected behavior
I would expect all links to nested content to open in a slideout.
Actual behavior
The title hyperlink leaves the current entry and opens the nested entry in its place.
Craft CMS version
5.1.10
PHP version
8.2
Operating system and version
Mac OS 14.5
Database type and version
mysql 8
Image driver and version
No response
Installed plugins and versions
CKEditor 4.0.6 Navigation 3.0.0