News module - header thing

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Fluffy

News module - header thing

Post 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?
Fluffy

News module - header thing

Post by Fluffy »

No one has any idea?
Akrabat

News module - header thing

Post by Akrabat »

To change the date format, try setting the dateformat attribute

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

News module - header thing

Post 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!
Akrabat

News module - header thing

Post 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...
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

News module - header thing

Post by Ted »

Hmm. I thought it was strftime. Not sure what happened, but I'll change the help accordingly.
Locked

Return to “[locked] Installation, Setup and Upgrade”