Page 1 of 1

Serenity template problem

Posted: Sun Feb 26, 2012 9:41 pm
by wiros
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

Re: Serenity template problem

Posted: Mon Feb 27, 2012 4:59 pm
by Dr.CSS
A link to the page/site really helps...

Re: Serenity template problem

Posted: Mon Feb 27, 2012 9:42 pm
by wiros

Re: Serenity template problem

Posted: Tue Feb 28, 2012 10:43 am
by Rolf
Hi Wiros,

Looks like you need to create a Global Content Block (html-blok) named "news4"

grtz. Rolf

Re: Serenity template problem

Posted: Tue Feb 28, 2012 10:49 am
by wiros
Thanks. :)

Re: Serenity template problem

Posted: Tue Feb 28, 2012 4:52 pm
by giapippo
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.

Re: Serenity template problem

Posted: Wed Feb 29, 2012 5:40 pm
by Dr.CSS
Read the Help for News, read the default content...

http://multiintech.com/defaultcontent/d ... /news.html

Re: Serenity template problem

Posted: Thu Mar 01, 2012 8:34 pm
by giapippo
thanks
i have insert in the {global_content name='news4'}

this string
{news number='1' detailpage='news'}


thanks

bye bye

Re: Serenity template problem

Posted: Thu Mar 01, 2012 9:38 pm
by giapippo
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

Re: Serenity template problem

Posted: Thu Mar 01, 2012 9:57 pm
by Dr.CSS
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

Posted: Sun Mar 04, 2012 6:44 pm
by giapippo
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}&nbsp;{$prevpage}&nbsp;
{/if}
{$pagetext}&nbsp;{$pagenumber}&nbsp;{$oftext}&nbsp;{$pagecount}
{if $pagenumber < $pagecount}
&nbsp;{$nextpage}&nbsp;{$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}:&nbsp;{eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
<div>

</div>
</div>
{/foreach}
<!-- End News Display Template -->

Re: Serenity template problem

Posted: Mon Mar 05, 2012 5:07 pm
by Dr.CSS
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...

Re: Serenity template problem

Posted: Mon Mar 05, 2012 8:59 pm
by giapippo
...... sorry

very very very thanks