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
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
This should fix it in a lot of cases....
#3
Re-categorizing this to a feature request.