Serenity template problem

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
wiros
New Member
New Member
Posts: 4
Joined: Fri Feb 10, 2012 8:08 pm

Serenity template problem

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Serenity template problem

Post by Dr.CSS »

A link to the page/site really helps...
wiros
New Member
New Member
Posts: 4
Joined: Fri Feb 10, 2012 8:08 pm

Re: Serenity template problem

Post by wiros »

User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Serenity template problem

Post by Rolf »

Hi Wiros,

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
- + - + - + - + - + - + -
Image
wiros
New Member
New Member
Posts: 4
Joined: Fri Feb 10, 2012 8:08 pm

Re: Serenity template problem

Post by wiros »

Thanks. :)
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: Serenity template problem

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Serenity template problem

Post by Dr.CSS »

Read the Help for News, read the default content...

http://multiintech.com/defaultcontent/d ... /news.html
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: Serenity template problem

Post by giapippo »

thanks
i have insert in the {global_content name='news4'}

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


thanks

bye bye
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: Serenity template problem

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Serenity template problem

Post 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...
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: Serenity template problem

Post 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 -->
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Serenity template problem

Post 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...
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: Serenity template problem

Post by giapippo »

...... sorry

very very very thanks
Post Reply

Return to “Layout and Design (CSS & HTML)”