Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello
I have created a custom build mode in Display Suite for my node-in-block pages. But I have noticed that the node is always rendered as a teaser. The following piece of code is responsible for that:
<?php
// Support for Node Displays module.
if (module_exists('nd')) {
$node->build_mode = $row->render;
$teaser = ($node->build_mode != 'full') ? TRUE : FALSE;
$show_links = ds_show_field('nd', $node->type, $node->build_mode, 'links');
$output .= node_view($node, $teaser, FALSE, $show_links);
}
?>
Is there a way to do this without hacking the module?
Thanks in advance!
Comments
Comment #1
swentel CreditAttribution: swentel commentedHrm, sadly enough not no, sorry about that. Would take a fairly big change to get that in.