auto_entitylabel is a module which provides functionality to automatically label entities using tokens.
We can add a link to the Auto Entity Label administrative form through each ECK bundle admin interface using daggerhart's solution here: https://www.drupal.org/node/2829571#comment-12159400
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | eck-Add-support-to-eck-for-auto_entitylabel-2905426-14-D8.patch | 1.18 KB | vladbo |
| #12 | eck-Add-support-to-eck-for-auto_entitylabel-2905426-12-D8.patch | 1.06 KB | pifagor |
Comments
Comment #2
caldenjacobs commentedSee attached patch for latest dev release of ECK.
Comment #4
caldenjacobs commentedUpdated the path to eck.module in the patch
Comment #5
caldenjacobs commentedUpload patch with changes from #4.
Comment #6
caldenjacobs commentedHiding patch included in #2 as the path wasn't proper. Please test the patch from #5.
Comment #7
caldenjacobs commentedCorrected the path argument to show the appropriate ECK entity bundle in the Token browser
Comment #8
OnkelTem commentedThanks for the patch.
Unfortunately it doesn't work for me.
Automatic label tab has appeared on ECK entity bundle edit type page and I see the entity token now in the list of tokens, but
1) Label field still appears on forms despite I selected "Automatically generate the label and hide the label field"
2) It is required and I can't save it w/o entering some value
3) When value is entered it's not overwritten by Automatic entity labels.
Comment #9
OnkelTem commentedOk, I figured out the reason. It was a bug in Auto Entity Labels.
Details: https://www.drupal.org/project/auto_entitylabel/issues/2923876
So now it works.
Thank you Christian!
Comment #10
kclarkson commented@onkelTem,
thanks for your post. In order for it to work I also needed the patch from https://www.drupal.org/project/auto_entitylabel/issues/2923876
Comment #12
pifagor commentedComment #14
vladbo commentedI think it's better to use route parameters here.
Comment #15
vladbo commentedComment #17
dieterholvoet commentedComment #18
dieterholvoet commentedI just tested the module and it seems to work with ECK entities out-of-the-box.