Page 1 of 1

News and Calendar module tweaks

Posted: Tue Oct 17, 2006 5:00 pm
by wientanz
Hi!

Running CMSMS 0.13 on an FreeBSD Server, managed hosting at powweb.com
www.wientanz.com

Working with IE here..

I've got some problems regarding Calendar 0.7beta and News module...

On the starting page there are empty lines in the News (further down), that I can't get rid of. In the code I can't see any paragraphs or stuff. How do they get there?

Code: Select all

<strong><a href="http://www.wientanz.com/index.php/news/6/6">Ball der Tänzer</a></strong>


<br /><div id="startseitenews"><i>Oct 17, 2006</i></div>
<br /><div id="startseitenews"><strong>Wientanz.com-Tip</strong>: Am 9. Dezember lädt Just4Dance zum großen Jahresfinale der Veranstaltungsreihe 2006 - diesmal im feinen Ambiente des Parhotel Schönbrunn.</div>
<br />[<a href="http://www.wientanz.com/index.php/news/6/6">mehr...</a>]

<br>


<br>
The empty line is right between the Date (Oct 17, 2006) and "Wientanz.com-Tip".

I'm currently using the following News-template for that:

Code: Select all

<!-- Start News Display Template -->
{foreach from=$items item=entry}

<br>

<strong>{$entry->titlelink}</strong>

{if $entry->postdate}

<br /><div id="startseitenews"><i>{$entry->postdate|date_format : '%Y'}</i></div>
{/if}
{if $entry->summary}
<br /><div id="startseitenews">{$entry->summary}</div>
<br />[{$entry->morelink}]
{else if $entry->content}
<br /><div id="startseitenews">{$entry->content}</div>
{/if}

<br>

{/foreach}
<!-- End News Display Template -->
The next thing is how can I change the dateformat in Modules and Calendar?

I don't see any difference if I use the dateformat tag. It always uses the default dateformat. I'd like to have something like 31.12.2006
{cms_module module='News' number='4' category='Allgemein, WienTanz-News' summarytemplate='startseite.tpl' moretext="mehr..." dateformat="%d %m %Y"}

And is there any way to reduce the number of items that are displayed with Calendar? Using upcoming template.