readmore not set

bwynants - February 8, 2007 - 20:34
Project:Content Construction Kit (CCK)
Version:6.x-1.x-dev
Component:content.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (code needs review)
Description

there is no readmore link when showing the teaser....

fixed it by adding $node->readmore = TRUE; to content_view but I don't think this is the correct way....

#1

yched - February 9, 2007 - 19:18

In CCK 5, we do not actually render both teaser and full page display on a node's view, so there's no way for us to do something like
the 'usual' :

<?php
$node
->readmore = (strlen($node->teaser) < strlen($node->body));
?>

I guess the right criterion would be 'if display settings are different for teaser and full page', but it looks hairy, plus I'm not even sure that makes sense... I think we're left with 'an always TRUE or always FALSE' choice ?

#2

bwynants - March 8, 2008 - 18:32
Status:active» patch (code needs review)

This should fix it in a lot of cases....

AttachmentSize
patch.patch1.05 KB

#3

KarenS - May 29, 2008 - 21:11
Category:bug report» feature request

Re-categorizing this to a feature request.

 
 

Drupal is a registered trademark of Dries Buytaert.