You are hereSimplenews SCS - Simplenews Content Selection
Simplenews SCS - Simplenews Content Selection
As i mention before in simplenews template you need to make table layout for it to work in all email readers, so if You are using this module, for selecting content of your newsletters, you might need this. I made and overide of template functions of SCS to make them how I wanted them to look so this is what I added to template.php
$output = '';
if (isset($node->field_naslovna[0]['filepath'])){
$node_img = theme('imagecache', 'Nletter', $node->field_naslovna[0]['filepath'], $node->field_naslovna[0]['data']['alt'], $node->field_naslovna[0]['data']['title'], null);
}
else{
$node_img = theme('imagecache', 'Nletter', 'sites/default/files/imagecache/plakat_velika/imagefield_default_images/logo.gif');
}
$output = '<tr class="node_nl" id="node_' . $node->nid . '">';
$output .= '<td width="225" align="left" valign="top">'.$node_img.'</td>';
$output .= '<td width="425" valign="top"><h2>' . $node->title . '</h2>';
$output .= '<p>' . node_teaser($node->body) . '</p>';
$output .= '<p class="read_more"><a href="node/' . $node->nid .'"><img src="http://www.arabba.hr/sites/all/themes/fusion/fusion_starter/css/img/more_tcr.gif" /></a></p></td>';
$output .= '</tr>';
$output .= '<tr><td colspan="2" width="650" height="10"> </td></tr>';
$output .= '<tr><td colspan="2" width="650" height="1" class="no_border"><img src="http://www.arabba.hr/sites/all/themes/fusion/fusion_starter/css/img/tcr_sep.gif" /></td></tr>';
$output .= '<tr><td colspan="2" width="650" height="10"> </td></tr>';
return $output;
}
function fusion_core_scs_region_output($regionid, $content) {
$output = '';
$output .= sprintf('<table class="region" id="region-%d" align="center">', $regionid);
// $output .= '<h1>Region ' . $regionid .'</h1>';
$output .= $content;
$output .= sprintf('</table>');
return $output;
}
also one note. When testing your template, be aware that SCS is making a html layout that is saved, when you select nodes, so if you change your template, you need to create new newsletter to see changes you make in your template.php