PDA

View Full Version : "need help" Rotating healines V3


Zhr?
04-10-2008, 01:53 PM
hi

where i have to inclide this code in homepage.tpl :confused:
<vte:include file="{VIVVO_TEMPLATE_DIR}box/rotating_headlines_list_v_2.tpl" />

regards

Micha
04-10-2008, 02:07 PM
You can include it right after opening <div id="box_center_holder_home">.

You also need to remove entire <!-- Main news section --> block in order to make rotating headlines fit the center column.

Zhr?
04-10-2008, 11:33 PM
what i will remove exactly ?

Micha
04-11-2008, 08:00 AM
what i will remove exactly ?

Old headlines and three latest news next to it.

Only one correction, you don't need to remove <!-- Main news section --> block, that was my mistake, you need to remove <!-- Latest news section --> enclosed within <div id="content_features_right">.

Zhr?
04-14-2008, 02:27 PM
Hi Micha

i use Xhtml template , this is my homepage.tpl , please edit it to obtain rotating headlines 3 .

<html xmlns="http://www.w3.org/1999/xhtml" lang="{VIVVO_LANG_CODE}" xml:lang="{VIVVO_LANG_CODE}">
<vte:include file="{VIVVO_TEMPLATE_DIR}system/html_header.tpl" />
<body id="layout_default">
<div id="container">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/header.tpl" />
<div id="content">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/ticker.tpl" />
<div id="dynamic_box_left">
<div id="box_left_holder">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/box_ipod_sections.tpl" />
<vte:include file="{VIVVO_TEMPLATE_DIR}box/plugin_newsletter.tpl" />
<vte:include file="{VIVVO_TEMPLATE_DIR}box/plugin_poll.tpl" />
<vte:load module="box_banners" search_zone_id="4" />
</div>
</div>
<div id="dynamic_box_center">
<div id="box_center_holder_home">
<script type="text/javascript"><!--
google_ad_client = "pub-6682684593826571";
/* 468x60, date de création 28/03/08 */
google_ad_slot = "8284192877";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<div id="content_features" class="features_equal_default">
<!-- Rotating headlines -->
<div id="content_features_left">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/rotating_headlines.tpl" image_size="article_medium" />
</div>
<div id="content_features_right">
<!-- Latest news section -->
<vte:box module="box_article_list">
<vte:params>
<vte:param name="cache" value="1" />
<vte:param name="search_sort_by" value="{VIVVO_HOMEPAGE_ARTICLE_LIST_ORDER}" />
<vte:param name="search_order" value="descending" />
<vte:param name="search_cid" value="{VIVVO_HOMEPAGE_ARTICLE_LIST_CATEGORIES}" />
<vte:param name="search_limit" value="3" />
<vte:param name="add_to_printed" value="true" />
<vte:param name="exclude_printed" value="true" />
</vte:params>
<vte:template>
<div>
<div id="latest_news" class="box_body">
<vte:if test="{VIVVO_HOMEPAGE_ARTICLE_LIST_COLUMNS} = 1">
<vte:foreach item = "article" from = "{article_list}">
<vte:include file="{VIVVO_TEMPLATE_DIR}summary/default.tpl" />
</vte:foreach>
<vte:else>
<vte:for from = "{article_list}" key="latest_key" step="{VIVVO_HOMEPAGE_ARTICLE_LIST_COLUMNS}">
<vte:foreach item = "article" from = "{article_list}" start="{latest_key}" loop="{VIVVO_HOMEPAGE_ARTICLE_LIST_COLUMNS}">
<vte:include file="{VIVVO_TEMPLATE_DIR}summary/default.tpl" />
</vte:foreach>
</vte:for>
</vte:else>
</vte:if>
</div>
</div>
<script>
$$('#latest_news .short').each(
function (short){
var summary = short.getElementsByClassName('summary')[0];
resizeShort(short, summary);
}
);
</script>
</vte:template>
</vte:box>
</div>
</div>
<!-- Main news section -->
<vte:box module="box_sections">
<vte:params>
<vte:param name="cache" value="1" />
<vte:param name="search_ids" value="{VIVVO_MODULES_MORE_NEWS_CATEGORIES}" />
</vte:params>
<vte:template>
<div id="category_news_box" >
<div class="main_news_box_holder">
<vte:for from="{categories}" step="2" key="category_index">
<div class="main_news_box_row">



<vte:foreach item = "category" from = "{categories}" loop="2" start="{category_index}">



<div id="box_more_category_list_{category.get_id}" class="main_news_category">



<div class="box_title">



<h4>



<a href="{category.get_href}"><vte:value select="{category.get_category_name}" /></a>







</h4>







<vte:foreach item = "sub_category" from = "{category.subcategories}" key="index">







<span>







<vte:if test="{index} != 1"> | </vte:if>







<a href="{sub_category.get_href}"><vte:value select="{sub_category.get_category_name}" /></a>







</span>







</vte:foreach>







</div>







<div class="box_body">







<vte:box module="box_article_list">







<vte:params>







<vte:param name="search_sort_by" value="created" />







<vte:param name="search_limit" value="{VIVVO_MODULES_MORE_NEWS_ARTICLE_NUMBER}" />







<vte:param name="search_cid" value="{category.id}" />







<vte:param name="add_to_printed" value="true" />







<vte:param name="exclude_printed" value="true" />







</vte:params>







<vte:template>







<vte:foreach item = "article" from = "{article_list}" start="1" loop="1">







<vte:include file="{VIVVO_TEMPLATE_DIR}summary/morenews_short.tpl" />







</vte:foreach>







<ul>







<vte:foreach item = "article" from = "{article_list}" start="2">







<li><a href="{article.get_href}"><vte:value



select="{article.title}" /><vte:if test="{article.get_link}">



<img src="{VIVVO_THEME}img/external.png"



alt="{LNG_VISIT_WEBSITE}"/></vte:if></a></li>







</vte:foreach>







</ul>







</vte:template>







</vte:box>







</div>







</div>







</vte:foreach>







</div>







</vte:for>







</div>







</div>







</vte:template>







</vte:box>







<vte:include file="{VIVVO_TEMPLATE_DIR}box/latest_news.tpl" />







</div>







</div>







<div id="dynamic_box_right">







<div id="box_right_holder">









<vte:include file="{VIVVO_TEMPLATE_DIR}{VIVVO_LOGIN_TEMPLATE}" />







<vte:include file="{VIVVO_TEMPLATE_DIR}box/most_popular_email.tpl" />






<vte:include file="{VIVVO_TEMPLATE_DIR}box/tag_cloud.tpl" />







<vte:include file="{VIVVO_TEMPLATE_DIR}box/comment_tabs.tpl" />







<vte:include file="{VIVVO_TEMPLATE_DIR}box/box_paged_article_list.tpl" />



<vte:include file="{VIVVO_TEMPLATE_DIR}box/featured_author.tpl" />

<vte:load module="box_banners" search_zone_id="6" />

<vte:load module="box_banners" search_zone_id="9" />


</div>







</div>







<div id="content_footer">







</div>







<div id="footer">







<vte:include file="{VIVVO_TEMPLATE_DIR}box/footer.tpl" />







</div>







</div>







</body>







</html>



thank you in advance . best regards Micha