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.
Hi,
now weary easy to add ability to populate title attribute at internal pages if HTML title attributes is enabled.
It is only necessary to replace line 34 of linkit.js from:
path: result.path
to:
path: result.path, attributes: {title: ((result.addClass==='status-ok' || result.addClass===null || result.addClass==='') ? result.title : '')}
Comment | File | Size | Author |
---|---|---|---|
#11 | linkit-populate-title-attribute-D7-1892992-11.patch | 549 bytes | tostinni |
Comments
Comment #1
anonI dont understand the request..
Comment #2
SimonLitt CreditAttribution: SimonLitt commentedThe ability to get in choosing the internal content is not only a path, but also the title attribute.
Comment #3
SimonLitt CreditAttribution: SimonLitt commentedComment #4
anonThats a good feature request.. Tho I think this should be a setting on the attribute. I will see what I can dp.
Comment #5
anonComment #6
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedI think it's a rather neat feature. sadly, the patch doesn't apply anymore.
Comment #7
anonI have plans for this in the 8.x version
Comment #8
anonComment #11
tostinni CreditAttribution: tostinni at Agence Propal commentedFor those interested on adding this for D7, here is the patch.
Thanks anon for this great module.