Would it be possible to optionally provide the links as a Drupal block, assignable to any region in the node page? Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1108016-provide-links-as-block.patch | 4.25 KB | danlinn |
Would it be possible to optionally provide the links as a Drupal block, assignable to any region in the node page? Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1108016-provide-links-as-block.patch | 4.25 KB | danlinn |
Comments
Comment #1
willvincent commentedThis really isn't easily doable due to the limitation with the way blocks work. They are not generally aware of the node id, and in the case of multiple nodes being displayed on the page at the same time, there's no way this would work without significant changes to the core block system.
Comment #2
danlinn commentedI've created a patch (For 7 branch only) that makes this available in a block. It uses Node ID if available, otherwise it substitutes the site name for the title. The body is disregarded since it doesn't know which node to use. This patch also makes it safe to use on types with no body attribute (#1097568: Fatal Error on module).
Comment #3
willvincent commentedCommit to 7.x-1.x git branch, I'll try to find time to backport this to 6 soon.
Thanks for yet another patch danlinn! :)
Comment #4
willvincent commentedBackported, and commit to 6.x-1.x git branch.