Articel date

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Articel date

Post by Stim »

Hi

There is problems with article date. Its work but if I change something in article later for example spelling or something, then article date change to day of todays date. I don’t wont that date changing every time I have to change something later. How to fix this problem?

I use in article something like this: Published: 2006-03-14

In article template I use {DATE:Y-m-d:SE}. Maybe I used wrong tag or something?
rollofritz
Posts: 57
Joined: Thu 8. Sep 2005, 10:58
Location: Neumarkt,Germany
Contact:

Post by rollofritz »

Hi Stim


whats with

{DATE_ARTICLE}
Use: Distributes the construction date of the article
Notation: {DATE_ARTICLE}
Result: 2005/05/29
Remark: To display date in other languages you must edit: config/phpwcms/conf.template_default.inc.php
$template_default["date"]["language"]="EN";

look at this:
http://www.phpwcms-docu.de/article_tags.phtml

regards

rollofritz
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Thanks rollofritz!

Can 2005/05/29 be change to somthing like 2005-05-29?
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

config/phpwcms/conf.template_default.inc.php

Search for:

Code: Select all

$template_default["date"]["article"]		= "Y/m/d";      // (2003/12/25)
change the Y/m/d to Y-m-d
that's it!
pixelpublic GmbH | Agentur für Neue Medien und Gestaltung
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Thats was easy :lol:

Thanks gys for all your help!
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Hi

{DATE_ARTICLE} did not really work! I have Published: {DATE_ARTICLE}in template file for full article, but date still change every time I do something change after in article. What’s wrong?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Stim wrote:What’s wrong?
The job of {DATE_ARTICLE} is to wait for each time an article is changed and then update that date. Similar to the -=Last Updated=-
It is NOT article creation date. :wink:
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Hi DeXXus!
What do you mean? Du you mean there are no solution for this stuff/problems?

I can see on the Pappnase site who use something like this: Article created: 2004/08/23, and Last Changes: 2006/05/01 on http://www.phpwcms-docu.de/index.php?english_version

What happens Pappnase if you change something in article later? Do you get change in Article created: 2004/08/23? if you change something later in article?
Pappnase

Post by Pappnase »

hello

that what i use is the wak_article_created tag! :-) wich you will find in the hacks forum. it was made by kubens.
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Hi Pappnase

Do you know if it can be change exampel from 2004/08/23 to somthing like this 2004-08-23 instead ?

I have download that addon article created.zip from your site and its seems to be work nice. It was very nice and easy to understand and install. :lol:

Thanks again for your great site :lol:
Pappnase

Post by Pappnase »

hello

same as 3 posts before!
it takes teh settings from the template default file!
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Thanks Pappnase

Works nice now :lol:
Post Reply