A couple things I'd like to change in news module

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
haapati
Forum Members
Forum Members
Posts: 20
Joined: Sun Sep 10, 2006 4:14 pm

A couple things I'd like to change in news module

Post by haapati »

How could I change the date order in edit article and add article pages?
I want to the date order is day, month, year.

And how could I translate month names in other language?
Maybe I would want to put some text in between those forms, how it happens?

Image
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: A couple things I'd like to change in news module

Post by Dr.CSS »

If you want the rendered date to be diff. you can use the (optional) dateformat="%b %d, %Y" - Format to display the article's post date with. This is based on the strftime function and can be used in your template with $entry->formatpostdate. It defaults to %x, which is the default date format for the sever's locale.

As far as lang. try (optional) lang="en_US" - or whatever your lang. is, Parameter is used to specify what language to use for display on the frontend. Not all modules support or need this.
haapati
Forum Members
Forum Members
Posts: 20
Joined: Sun Sep 10, 2006 4:14 pm

Re: A couple things I'd like to change in news module

Post by haapati »

No effect in edit article or add article pages.

I want to change these forms order which are on that picture.
The picture was taken in the page (news module) where you can create a new news or edit an old news.
Image
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: A couple things I'd like to change in news module

Post by Dr.CSS »

That will require editing the PHP files.
haapati
Forum Members
Forum Members
Posts: 20
Joined: Sun Sep 10, 2006 4:14 pm

Re: A couple things I'd like to change in news module

Post by haapati »

I know. What files and rows should I edit?

I was try to find the correct lines in the news modules PHP files but I couldn't find them.  :'(
Post Reply

Return to “CMSMS Core”