Start date refuses to show

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Start date refuses to show

Post 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
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post 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
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

additionally to what StudioZ mentioned have a look for:
[x]
Last edited by Jensensen on Sat 20. Sep 2008, 17:51, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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.
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Post 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
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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
User avatar
fardilha
Posts: 48
Joined: Wed 3. May 2006, 21:18
Location: Portugal
Contact:

Post 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
Post Reply