Serenity template problem
Serenity template problem
I installed the serenity template, but do not understand the instruction:
this template has one global news box lower left below the menu + it shows content from a global news page called news4 (create this page to use the news area)
I did create this page but only error at the position where the news box should appear:
mydomain.nl/public_html/lib/smarty/Smarty.class.php:1593 - trigger_error
mydomain/public_html/lib/smarty/Smarty.class.php:1415 - _fetch_resource_info
And lots more
this template has one global news box lower left below the menu + it shows content from a global news page called news4 (create this page to use the news area)
I did create this page but only error at the position where the news box should appear:
mydomain.nl/public_html/lib/smarty/Smarty.class.php:1593 - trigger_error
mydomain/public_html/lib/smarty/Smarty.class.php:1415 - _fetch_resource_info
And lots more
Re: Serenity template problem
A link to the page/site really helps...
Re: Serenity template problem
Hi Wiros,
Looks like you need to create a Global Content Block (html-blok) named "news4"
grtz. Rolf
Looks like you need to create a Global Content Block (html-blok) named "news4"
grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Serenity template problem
Thanks. 

Re: Serenity template problem
hallo
i have a problem with news in the same template
all work fine but i need to show only the last news in home page
i have created a Global Content Block (html-blok) named "news4" ed insert tag {news} on this
(sorry for my english)
Thanks.
i have a problem with news in the same template
all work fine but i need to show only the last news in home page
i have created a Global Content Block (html-blok) named "news4" ed insert tag {news} on this
(sorry for my english)
Thanks.
Re: Serenity template problem
Read the Help for News, read the default content...
http://multiintech.com/defaultcontent/d ... /news.html
http://multiintech.com/defaultcontent/d ... /news.html
Re: Serenity template problem
thanks
i have insert in the {global_content name='news4'}
this string
{news number='1' detailpage='news'}
thanks
bye bye
i have insert in the {global_content name='news4'}
this string
{news number='1' detailpage='news'}
thanks
bye bye
Re: Serenity template problem
sorry 
now, in home page, i have only 1 news
but i wont hide the category e page scroll (in red)
example:
"Ultima Novità
General
<< < Pagina 1 di 2 > >>
Feb 28, 2012
L'organizzazione di Julian Assange pubblica circa cinque milioni di e-mail di Stratfor, agenzia di consulenza ch"
the global_content name is this
Ultima Novità
{news number='1' detailpage='news'}
what can i do for hide the category and page scroll in home?
very thanks

now, in home page, i have only 1 news
but i wont hide the category e page scroll (in red)
example:
"Ultima Novità
General
<< < Pagina 1 di 2 > >>
Feb 28, 2012
L'organizzazione di Julian Assange pubblica circa cinque milioni di e-mail di Stratfor, agenzia di consulenza ch"
the global_content name is this
Ultima Novità
{news number='1' detailpage='news'}
what can i do for hide the category and page scroll in home?
very thanks
Re: Serenity template problem
You need to change the default News summary template, removing that part or make a new one and remove it from there and then use that template in the {news} tag...
Re: Serenity template problem
sorry but i'm not expert
this is my news template
i red selected the part modified fon not display category and autor
what i need to chand for hide category and page number in home page ?
my web site is www.gianlucacompagno.com
very very thanks
<!-- Start News Display Template -->
{* This section shows a clickable list of your News categories. *}
<ul class="list1">
{foreach from=$cats item=node}
{if $node.depth > $node.prevdepth}
{repeat string="<ul>" times=$node.depth-$node.prevdepth}
{elseif $node.depth < $node.prevdepth}
{repeat string="</li></ul>" times=$node.prevdepth-$node.depth}
</li>
{elseif $node.index > 0}</li>
{/if}
<li{if $node.index == 0} class="firstnewscat"{/if}>
{if $node.count > 0}
<a href="{$node.url}">{$node.news_category_name}</a>{else}<span>{$node.news_category_name} </span>{/if}
{/foreach}
{repeat string="</li></ul>" times=$node.depth-1}</li>
</ul>
{* this displays the category name if you're browsing by category *}
{*{if $category_name}*}
{*<h1>{$category_name}</h1>*}
{*{/if}*}
{* if you don't want category browsing on your summary page, remove this line and everything above it *}
{if $pagecount > 1}
<p>
{if $pagenumber > 0}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->postdate}
<div class="NewsSummaryPostdate">
{$entry->postdate|cms_date_format}
</div>
{/if}
<div class="NewsSummaryLink">
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|cms_escape}</a>
</div>
{* <div class="NewsSummaryCategory">*}
{* {$category_label} {$entry->category}*}
{*</div>*}
{*{if $entry->author}*}
{*<div class="NewsSummaryAuthor">*}
{* {$author_label} {$entry->author}*}
{*</div>*}
{*{/if}*}
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
{if isset($entry->extra)}
<div class="NewsSummaryExtra">
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsSummaryField">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
<div>
</div>
</div>
{/foreach}
<!-- End News Display Template -->
this is my news template
i red selected the part modified fon not display category and autor
what i need to chand for hide category and page number in home page ?
my web site is www.gianlucacompagno.com
very very thanks
<!-- Start News Display Template -->
{* This section shows a clickable list of your News categories. *}
<ul class="list1">
{foreach from=$cats item=node}
{if $node.depth > $node.prevdepth}
{repeat string="<ul>" times=$node.depth-$node.prevdepth}
{elseif $node.depth < $node.prevdepth}
{repeat string="</li></ul>" times=$node.prevdepth-$node.depth}
</li>
{elseif $node.index > 0}</li>
{/if}
<li{if $node.index == 0} class="firstnewscat"{/if}>
{if $node.count > 0}
<a href="{$node.url}">{$node.news_category_name}</a>{else}<span>{$node.news_category_name} </span>{/if}
{/foreach}
{repeat string="</li></ul>" times=$node.depth-1}</li>
</ul>
{* this displays the category name if you're browsing by category *}
{*{if $category_name}*}
{*<h1>{$category_name}</h1>*}
{*{/if}*}
{* if you don't want category browsing on your summary page, remove this line and everything above it *}
{if $pagecount > 1}
<p>
{if $pagenumber > 0}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->postdate}
<div class="NewsSummaryPostdate">
{$entry->postdate|cms_date_format}
</div>
{/if}
<div class="NewsSummaryLink">
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|cms_escape}</a>
</div>
{* <div class="NewsSummaryCategory">*}
{* {$category_label} {$entry->category}*}
{*</div>*}
{*{if $entry->author}*}
{*<div class="NewsSummaryAuthor">*}
{* {$author_label} {$entry->author}*}
{*</div>*}
{*{/if}*}
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
{if isset($entry->extra)}
<div class="NewsSummaryExtra">
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsSummaryField">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
<div>
</div>
</div>
{/foreach}
<!-- End News Display Template -->
Re: Serenity template problem
See this line?...
{* if you don't want category browsing on your summary page, remove this line and everything above it *}
The code above this that you didn't comment out is for pagination...
{* if you don't want category browsing on your summary page, remove this line and everything above it *}
The code above this that you didn't comment out is for pagination...