<?php if ($page == 1) { // Find where the delimiter is in the body $delimiter = strpos($node->body, '<!--break-->'); // If a valid delimiter has been specified, use it to chop off the teaser. if ($delimiter !== FALSE) { $content = str_replace(node_teaser($node->body), '', $content); } } ?>
Комментарии
Есть такой хитрый тег:
<!--break-->
Все, что выше будет в анонсе, а что ниже в ноде
Это понятно.
Однако, в 6-ке есть возможность не включать анонс в ноду. А как насчет 5-ки?
Если решили это - подскажите. Остался один сайтик на 5-ке... лень тему переписывать...
В node.tpl.php
сделал так:
<?php
if ($page == 1) {
// Find where the delimiter is in the body
$delimiter = strpos($node->body, '<!--break-->');
// If a valid delimiter has been specified, use it to chop off the teaser.
if ($delimiter !== FALSE) {
$content = str_replace(node_teaser($node->body), '', $content);
}
}
?>