PDA

View Full Version : change order of news and editor


sitbyme
09-03-2006, 09:12 PM
Hi

I want the News module to be above the Editors Area module but am not sure how to do it. I changed their order in the header.tpl but that did not work, i don't know how much of the code to move around..

Anyone help with this?

Thanks

Sit

Greg
09-03-2006, 09:24 PM
Which template are you using?

sitbyme
09-03-2006, 09:34 PM
I'm using GreenLeaves....

Thanks

Greg
09-03-2006, 09:41 PM
Open header.tpl and find:
{if $news && $config.news}
<div class="box">
<div class="box-caption2-right">
<div class="box-caption2-left">
<div class="box-caption2">{$lang.news}</div>
</div>
</div>
<div class="box-content">
<div class="links">
{foreach from=$news item=one_news}
<div class="news-title">
{if $config.mod_rewrite}
<a href="{$config.base}{$config.dir}news/{convert_str string=$one_news.title}-n{$one_news.id}.html" id="news{$one_news.id}">{$one_news.title}</a></div>
{else}
<a href="{$config.base}{$config.dir}news.php?id={$one_news. id}" id="news{$one_news.id}">{$one_news.title}</a></div>
{/if}
<div class="news-body">{$one_news.body|truncate:$config.news_max:"..."}</div>
<div class="news-date">{$one_news.date|date_format:$config.date_format}</div>
{/foreach}
</div>
</div>
</div>
{/if}

Remove from where it is now and place that just below:
<td valign="top" height="10%" class="column">

sitbyme
09-03-2006, 10:00 PM
It worked like a charm.....:)

Thanks for the quick reply

Sit

Greg
09-03-2006, 10:28 PM
You're welcome. :)