Closed (fixed)
Project:
Simplenews Content Selection
Version:
6.x-1.5
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2010 at 09:47 UTC
Updated:
20 Jan 2011 at 13:25 UTC
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
Comment #1
dtrdewaele commentedWorks 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.
Comment #2
dtrdewaele commentedComment #3
seakayjay commentedPlease check if you are using separated administrative theme. You need to add the code to your admin theme instead of your front-end theme.
Comment #4
dtrdewaele commentedComment #6
polmaresma commentedThis works for me!