Having a teaser of the argument in the parent node listing

ekrispin - July 6, 2008 - 20:58
Project:Pro and Con arguments
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

When the arguments are displayed like comments at the bottom of the parent node, currently, the full text of the argument is shown.

This can be a problem in case of long arguments.

In case you want only a teaser of the argument to appear (with the "Read More" link to see the full argument), you just need to change the node_view statement in procon_views.inc at the bootm from:

$output .= node_view($node);

to:

$output .= node_view($node, TRUE);

The second parameter $teaser is now set to TRUE.

 
 

Drupal is a registered trademark of Dries Buytaert.