I override the theme function as follow in my theme template.php:

function mytheme_scs_node_output($node) {
$output = '';
$output .= '<div id="node_' . $node->nid . '" class="node">';
$output .= '<h1>' . l($node->title,'node/' . $node->nid)  . '</h1>';
$output .= '<p>'. node_teaser($node->body) . " ... [" . l(t('Read more'), 'node/' . $node->nid) . ']</p>';
$output .= '</div>';

return $output;
}

flush caches and using the admin/content/scs_node_selection ui to create the newsletter but the theming function isn't prevailed from mine at all.

please help, what I'm doing wrong?

Comments

dtrdewaele’s picture

Works perfect for me. Just added this to my template.php of the garland theme to test and cleared my cache at admin/settings/performance. As you can see I added test in front of the titles of my selected nodes.

function garland_scs_node_output($node) {
  $output = '';

  $output = '<div id="node_' . $node->nid . '">';
    $output .= '<h1>test' . $node->title . '</h1>';
    $output .= '<p>' . node_teaser($node->body) . '</p>';
    $output .= '<p>' . l(t('Read more'), 'node/' . $node->nid) . '</p>';
  $output .= '</div>';

  return $output;
}
dtrdewaele’s picture

Status: Active » Postponed (maintainer needs more info)
seakayjay’s picture

Please check if you are using separated administrative theme. You need to add the code to your admin theme instead of your front-end theme.

dtrdewaele’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

polmaresma’s picture

This works for me!