Closed (fixed)
Project:
Nodes In Block
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 May 2009 at 11:19 UTC
Updated:
17 Jun 2009 at 16:40 UTC
Hi there
Don't you think the links (those ones below the content showing things like "add comment" or "print preview",... ) should be disabled when the content is displayed in a block? Or at least it would be nice to be able to disable them somewhere. node_view() has a fourth parameter that could be set to false to hide the links. In nodesinblock.module on line 221, the following code would hide the links:
$output .= ($row->render == NIB_RENDER_TEASER) ? node_view($node, TRUE, FALSE, FALSE) : node_view($node, FALSE, TRUE, FALSE);
Cheers,
Michael
Comments
Comment #1
swentel commentedHmm, good point, never thought about that actually. I'll implement that somewhere this weekend!
Comment #2
swentel commentedThis got committed in the Drupal 6 branch, thx for the tip!