Sun Apr 15 2012, 10:26AM
Hi

I already posted a similar post on e107.org but no answers...

I changed news page on the three columns using the news_template.php with code:

$NEWSCOLUMNS = 3;
$NEWSCLAYOUT = "
<table style='width: 100%;'>
<tr>
<td style='width: 31%; vertical-align: top;'>{ITEMS1}</td>
<td style='width: 3%;'></td>
<td style='width: 32%; vertical-align: top;'>{ITEMS2}</td>
<td style='width: 3%;'></td>
<td style='width: 31%; vertical-align: top;'>{ITEMS3}</td>
</tr>
</table>
";


Now also I would like 3 columns in the NEWSLISTSTYLE variable. So that the categories (cat.1, cat.2, etc.) be displayed in the same style as news.php. Is this possible?

thanks
Back to top
Sun Apr 15 2012, 01:05PM
you can do it with css. something like this:
$NEWSLISTSTYLE = '
	<div style="margin-bottom: 15px; float:left; width:33%;">		<img src="'.THEME_ABS.'images/0908_bullet.png" alt="" style="vertical-align: middle" />{NEWSTITLELINK}<br/>		{NEWSDATE}{NEWSSUMMARY}
	</div>';
Back to top
Sun Apr 15 2012, 03:18PM
Thank You. Of course it works.
Back to top
Moderators: SonicE, veskoto, SecretR, Stoewarius, steved, McFly, Cameron, yanniiwanow
Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF

Jump:     Back to top