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.
Thanks for wonderful module.
I have a webform for which all links open in a colorbox and I am using this module to allow customers to create content links. To open webform into colorbox i need to give class attribute and with the current settings customers manually entering this class name.
So, is there a way to set up this default in attribute section of linkit profile page?
Comment | File | Size | Author |
---|---|---|---|
#10 | default_values-2419023-10.patch | 4.93 KB | plopesc |
#4 | default_values-2419023-4.patch | 4.86 KB | plopesc |
Comments
Comment #1
anonNot in the UI, But you can use some hooks to make this work.
Check my linkit extender module here https://github.com/bratanon/Mymodule/tree/7.x-3.x.
Make sure to use the 7.x-3.x branch.
Comment #2
abarpetia CreditAttribution: abarpetia commentedHello Anon,
Thanks for quick reply, My company won't allow me to use custom modules so, is there any way to have this feature implemented in this module?
Thank You,
Aniket
Comment #3
anonUnfortunately not.
Comment #4
plopescHello anon
I needed this feature for a project and created a patch for this. I think it's a useful feature.
I added a new column "Default value" in the attributes table to set the default value for each attribute at plugin level.
Could you take it into account fo the next module release?
Thanks!
Comment #10
plopescSigh...
New patch passing tests.
Comment #12
plopescTests are passing. There are issues with line endings:
Ensure the patch only contains unix-style line endings.
But I think this is out of the scope of this patch. theme.inc file seems have different line ending chars.
Thanks.
Comment #13
Chris Matthews CreditAttribution: Chris Matthews commentedThe 3 year old patch in #10 applied cleanly to the latest linkit 7.x-3.x-dev, but still needs community review & testing.