Problem/Motivation
Lately, we added a link for the content type fields on the node edit page. I think it makes sense to have a configuration for this function, to let decide show this link on the node edit page or not.
Because, for some themes, as for example Gin, it shows only the node title on the edit page and we should display the content type name with a link as well.
Proposed resolution
- Add a configuration page and allow to choose node content types (with checkboxes) to show a link;
- Add functionality to display links based on the configuration settings;
- If there are no settings, display for all content types;
Remaining tasks
Create MR.
Review.
Merge.
User interface changes
A configuration page will be added.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screenshot 2024-03-22 at 2.24.01 PM.png | 180.86 KB | nidhi27 |
Issue fork entity_reference_edit_link-3426993
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
_shyComment #3
nidhi27Comment #5
nidhi27Hello,
I have created #MR8 for this. Created one configuration form listing all the content type names. If you select the content type than it will show the link on node edit page.
Let me know if there are any suggestions!
Comment #6
raveen_thakur51 commentedHello Guys, I have implemented the changes as per MR! And configuration link was added successfully as you can see in the attached screenshot here: https://prnt.sc/5cYTgeFwOXJk
Comment #7
raveen_thakur51 commentedThe changes can be imported. Thank You!!
Comment #8
_shyStill need to fix some phpstan and cspell issues.
Comment #9
nidhi27Resolved phpstan and cspell issues.
Comment #10
nidhi27Comment #11
_shyThanks, everyone!
Merged to the 1.0.x branch. Will be added in the next release version!