1.6.4 "Moindou" NEWS module date issue

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Rkz
Forum Members
Forum Members
Posts: 36
Joined: Tue Feb 12, 2008 8:30 pm

1.6.4 "Moindou" NEWS module date issue

Post by Rkz »

I cant see dates after upgrading, I can see it dates in admin area news module.
Template:

Code: Select all

...
<div class="news_title">
	{$entry->titlelink}
</div>
{if $entry->formatpostdate}
<span class="news_date">{$entry->formatpostdate}</span>
{/if}
{if $entry->summary}
...
view source:

Code: Select all

<div class="news_title">
<a href="http://detailedurl">test title</a>
</div>
<div class="news_short">
<
...
As you can see it just want to show my news, please help
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: 1.6.4 "Moindou" NEWS module date issue

Post by Rolf »

Rkz,

Edit:

Code: Select all

{$entry->formatpostdate}
into:

Code: Select all

{$entry->postdate}
Grtz. ®olf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Rkz
Forum Members
Forum Members
Posts: 36
Joined: Tue Feb 12, 2008 8:30 pm

Re: 1.6.4 "Moindou" NEWS module date issue

Post by Rkz »

It helps, thank you.
Now date format is: 2009-09-23 23:20:14
How to remove time, just leave 2009-09-23
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: 1.6.4 "Moindou" NEWS module date issue

Post by Rolf »

Rkz,
How to remove time, just leave 2009-09-23

Code: Select all

{$entry->postdate|date_format:"%Y-%m-%d"}
for other date format settings: www.php.net/strftime

Grtz. ®olf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Rkz
Forum Members
Forum Members
Posts: 36
Joined: Tue Feb 12, 2008 8:30 pm

Re: 1.6.4 "Moindou" NEWS module date issue

Post by Rkz »

thank you
Post Reply

Return to “Modules/Add-Ons”