Page 1 of 1

Start date refuses to show

Posted: Tue 24. Apr 2007, 16:37
by fardilha
Hi all.

I really could use some help regarding this!!
I'm using phpwcms 1.3.0 and just realized that all of the info regarding showing the start date just don't work here!
I just tried all the solutions that I could find here at the forum but they just don't work on 1.3.0.

I tried {DATE_EVT}, I tried {DATE_ARTICLE} and {WAK_ARTICLE_CREATED} (among others) but no luck.

I have a site ( http://www.adsanjoanense.com/index.php?noticias ) were the news are ordered by start date, but every time i go to an article and correct a grammar mistake, the dam thing updates the visible date.
Ex: the last article on that page as a creation date of 09-04-2007 but appears as 24-04-2007 because i just tried to change the title!!!

I'm going insane with this!!
I cannot have a website with the dates acting like this!!! :cry:

Could anyone, please help me?
Thank you!

Pedro Fardilha

Posted: Tue 24. Apr 2007, 21:18
by StudioZ
I have the feeling that your issue could be related to this file:
template/inc_cntpart/articlesummary/list/sample.tmpl

You may check {DATE:FORMAT} and format it for your needs...
Maybe? {DATE:Y.m.d H:i}

Code: Select all

<!-- 
sample template for article summary listing
===========================================

TITLE       = article title
SUB         = article subtitle
SUMMARY     = article summary text
IMAGE       = summary image (only the <img src="..."> tag)
ZOOMIMAGE   = if the image is click-zoomable (<a href...><img...></a>)
CAPTION     = summary image caption
ARTICLELINK = url to full article
MORE        = the "more..." text/image like defined in template_defaults
BEFORE      = show before listing entry
AFTER       = show after listing entry
SPACE       = show this between listings
DATE        = show article date {DATE:FORMAT:LANG} or {DATE:FORMAT}
EDITOR      = name of editor
ARTICLEID   = ID of list entry

//-->
[SPACE]<hr>[/SPACE]
<div>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="150" valign="top">
[IMAGE]<div><a href="{ARTICLELINK}">{IMAGE}</a></div>[/IMAGE]
[CAPTION]<div align="center">{CAPTION}</div>[/CAPTION]
</td>
<td width="10"><img src="img/leer.gif" border="0" width="10" height="1" alt=""></td>
<td width="98%" valign="top">
[TITLE]<h1 style="margin:0 0 5px 0;">{TITLE}</h1>[/TITLE]
[SUB]<h3 style="margin:0 0 5px 0;">{SUB}</h3>[/SUB]
[SUMMARY]<p style="margin:0"><strong>{DATE:F:DE}</strong> {SUMMARY}</p>[/SUMMARY]
[MORE]<a href="{ARTICLELINK}">{MORE}</a>[/MORE]
</td>
</tr>
</table>
</div>
Hopefully :roll:

Yves

Posted: Tue 24. Apr 2007, 21:40
by Jensensen
additionally to what StudioZ mentioned have a look for:
[x]

Posted: Wed 25. Apr 2007, 01:04
by DeXXus
Jensensen wrote:using {DATE_ARTICLE} you'll get creation date displayed on page...

greetz
Additionally,
With using creation date, EVERY time you EDIT the article...That is CREATING new content.

Posted: Thu 26. Apr 2007, 12:15
by fardilha
Hi all.

First of all thank you so much to all of you, for the hints.

Now back to business: ;)

StudioZ: the file on template/inc_cntpart/articlesummary/list/sample.tmp allows to change the date format, but (at least apparently) it always show the modification date, I could not find a way to make it show the start date.

Jensensen: On the /config/phpwcms/conf.template_default.inc.php i'm using

Code: Select all

$template_default['news']['sort_by']		= 'ldate';
but no luck. It keeps showing the modification date, not the start one.

DeXXus: Yes, you are absolutely right, that's why I was trying to use the start date.

So... it's back to the test board for me. :(

Take care all!
Pedro Fardilha

Posted: Thu 26. Apr 2007, 14:16
by DeXXus
Looks like 1.32 ~should~ bring 'ldate' into compliance:

"changelog.txt"
[ADD] Replacement tag {NEW:} enhanced by 2 new date sort options: ldate = sort descending by start/live date, kdate = sort descending by end/kill date

Posted: Thu 26. Apr 2007, 17:00
by fardilha
Hi again!! :)

The sort option is already working on 1.3.0.
I have my articles properly sorted by start date.
The problem is that the date showing is not the start date, but the modification date.
Just in case I updated the site. ;) ... but no luck.

So instead of having the articles appear like this (showing the start date):

26-04-2007
25-04-2007
24-04-2007

They appear like this (showing the modification date):

26-04-2007
25-04-2007
26-04-2007

(because i correct a grammatical error, or add a photo on the last one)


I wouldn't mind disabling the standard date field on the template if there was any other RT that would give me the start date (and that works on 1.3.2)

Thank you all!
Pedro