Would it be possible to optionally provide the links as a Drupal block, assignable to any region in the node page? Thank you.

CommentFileSizeAuthor
#2 1108016-provide-links-as-block.patch4.25 KBdanlinn

Comments

willvincent’s picture

Status: Active » Closed (won't fix)

This 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.

danlinn’s picture

Version: 6.x-1.1 » 7.x-1.3
Status: Closed (won't fix) » Closed (fixed)
StatusFileSize
new4.25 KB

I'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).

willvincent’s picture

Status: Closed (fixed) » Patch (to be ported)

Commit 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! :)

willvincent’s picture

Status: Patch (to be ported) » Closed (fixed)

Backported, and commit to 6.x-1.x git branch.

  • Commit 3326255 on 7.x-1.x, 8.x-1.x:
    Issue #1108016 by danlinn: Make share links available in a block.
    
    
  • Commit 0e69153 on 7.x-1.x, 8.x-1.x by willvincent:
    Issue #1108016 by danlinn: Add admin setting to make block available.