Page 1 of 1

News module - header thing

Posted: Thu Dec 02, 2004 7:14 pm
by Fluffy
I found "CMSMS" some days ago and I just did fall in "love"! (Or what you can call it between a human and software...) "CMSMS" is just "right". Clean menu and clean content editor systems. WGIWIFW.. (...) and normal code. Easy to use or can be very flexible. Hmm... To the thing... ->

I'm fixing my own theme to CMSMS and just have started with the news module and font and text size.

At the start the header looks like:
November 30, 2004, 8:40 pm
Tillbaka, halvt


I have changed a thing in the file modulefunctions.php (Line 187?) so it looks like:
November 30, 2004, 8:40 pm - Tillbaka, halvt

The only thing that is left is to fix the date and time to a more clean look like:
2004-11-30 - Tillbaka, halvt


Is this possible? If, how?



---

For future versions of News module - Fix a little settings where time/date look can be changed (Like "Date format" in PhpBB forum) and then maybe a little window to fill out like BBcode how the news should look like, ex:

Code: Select all

[date], [time] - [title]
[content]

[seporator]

Then some nice css stuff to make it nice, like it is now. :)

My idéa: Clean, simple and easy to use?



---

One more thing. Maby a news archive? Set a number of news been seen and rest be placed in a archive sorted by ex mounths or maby just years? Or no so "advanced" archive but just have exampel 10 news on "front page" and then the rest on a ather page?

News module - header thing

Posted: Tue Dec 07, 2004 6:43 pm
by Fluffy
No one has any idea?

News module - header thing

Posted: Tue Dec 07, 2004 9:40 pm
by Akrabat
To change the date format, try setting the dateformat attribute

e.g. {cms_module module="news" dateformat="%Y-%m-%d"}

News module - header thing

Posted: Wed Dec 08, 2004 2:29 pm
by Fluffy
Akrabat wrote:To change the date format, try setting the dateformat attribute

e.g. {cms_module module="news" dateformat="%Y-%m-%d"}
It was:

Code: Select all

{cms_module module="news" dateformat="Y-m-d"}
%Y-%m-%d did give: %2004-%12-%07. :)

Thanks!

News module - header thing

Posted: Sat Dec 11, 2004 11:06 am
by Akrabat
Fluffy wrote:It was:

Code: Select all

{cms_module module="news" dateformat="Y-m-d"}
%Y-%m-%d did give: %2004-%12-%07. :)

Thanks!
It was?

The Help must be wrong then as it says that the format is strftime() which requires the % symbol :) It must be date() though...

News module - header thing

Posted: Sat Dec 11, 2004 1:09 pm
by Ted
Hmm. I thought it was strftime. Not sure what happened, but I'll change the help accordingly.