Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I found that when we create a referenced node by the "Create [Content Type]" link, this link is still here after the node form submission.
I think it's better if this link is transformed by an Edit link and a Delete link, so i have juste add this little snippet to the js/references-dialog.js on line 41 :
$('.' + key).empty();
$('.' + key).append('<ul class="references-dialog-links"><li class="0 first"><a href="/fr/node/' + entity_id + '/edit" class="edit-dialog references-dialog-activate" original-title="">Modifier</a></li><li class="1"><a href="/fr/node/' + entity_id + ' /delete?destination=node/285/edit" class="delete-dialog" original-title="">Supprimer</a></li></ul>');
I hope it will be usefull and could be a way to improve the UI of this module !
Joel.
Comments
Comment #1
imclean CreditAttribution: imclean commentedSee also #1788596: Don't show Create link for fields which have a value
Comment #2
rogical CreditAttribution: rogical commentedThis is a bit different, we still need to find out a way to use support all entity edit links, not just node.
Comment #3
rogical CreditAttribution: rogical commented#1257808: Edit links does not display until after the node is saved.
Comment #3.0
rogical CreditAttribution: rogical commentedmistake
Comment #4
VasyOK CreditAttribution: VasyOK commentedIn latest dev version same trouble