News module driving me insane--Sloved

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
The Shadow
Forum Members
Forum Members
Posts: 22
Joined: Sun Apr 04, 2010 5:37 pm

News module driving me insane--Sloved

Post by The Shadow »

hi all, I am new to the forums and to CMSMS.  Let  me start off first by saying that I am absolutely loving CMSMS, I find it to be very straight forward and intuitive; until I got to the news section.  

I was able to customize the summary template pretty easily, and after many headaches I finally found how to customize the add article field by editing the editarticle.tpl file.  I kept editing the form template, but that did nothing.  

Currently on the last 3 items are being displayed and I want all of them to be displayed.  I am also extremely frustrated with how to sort the items being displayed on my web site.  I want the items to be displayed ascending, ie. the events  that are coming up, not by when the events where published.  Then I want events to automatically be deleted once they're over.

Could some please help me with this?
Last edited by The Shadow on Mon May 10, 2010 8:46 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News module driving me insane

Post by Rolf »

Hello The Shadow

Welcome at the CMSMS forum

You can change template in the backend. You will find tabs with templates in the News admin. No need to change any files!

In the help section of the News module you will find more info on how to call the module.
By putting only the {news} tag in a page, all articles will be shown in summary mode.

Hope this helps you getting started.

Reg. Rolf  :)


ps. Do you have Admin permissions? Can you see the template tabs in the first place??
Last edited by Rolf on Mon May 10, 2010 5:08 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
The Shadow
Forum Members
Forum Members
Posts: 22
Joined: Sun Apr 04, 2010 5:37 pm

Re: News module driving me insane

Post by The Shadow »

Thanks Rolf, I have full admin access.  I went to the Form Template tab in the news module, I made several changes, but they never showed up.  Thats why I had to edit the .tpl file.  I've got the news articals being displayed on my web site, i just want all of them to be displayed not just the last 3 items.  I also want to change the way the they are being ordered.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News module driving me insane

Post by Rolf »

The Shadow wrote: I have full admin access.  I went to the Form Template tab in the news module, I made several changes, but they never showed up.  Thats why I had to edit the .tpl file. 
It is possible in the {news} call a different template is called, there the changes aren't visible...
{news summarytemplate="the-wrong-one" detailtemplate="the-wrong-one"}
The Shadow wrote: I've got the news articals being displayed on my web site, i just want all of them to be displayed not just the last 3 items. 
Perhaps the tag used, containes number="3" - delete this.
The Shadow wrote: I also want to change the way the they are being ordered.
News Module Help Page wrote: # (optional) sortasc="true" - Sort news items in ascending date order rather than descending.
# (optional) sortby="news_date" - Field to sort by. Options are: "news_date", "summary", "news_data", "news_category", "news_title", "news_extra", "end_time", "start_time", "random". Defaults to "news_date". If "random" is specified, the sortasc param is ignored.
®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
The Shadow
Forum Members
Forum Members
Posts: 22
Joined: Sun Apr 04, 2010 5:37 pm

Re: News module driving me insane

Post by The Shadow »

I found my problem, I was testing the news on the default template on my test server.  Once I tried with my own template everything worked fine.  I added sortasc="true" to my {news} in my template, and its now looking great.  I still can't get the changes to the form template to show up without editing the .tpl file.
The Shadow
Forum Members
Forum Members
Posts: 22
Joined: Sun Apr 04, 2010 5:37 pm

Re: News module driving me insane

Post by The Shadow »

Okay, I've pretty much got it the way I want it, expect for I want to truncate the year from being displayed.  I just want the month and the date. 
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News module driving me insane

Post by Rolf »

Default News uses the global date setting of the CMS: {$entry->postdate|cms_date_format}

In the template you can change this to {$entry->postdate|date_format:'parameters'}
The parameters you want to fill in, you can find here: http://php.net/manual/en/function.strftime.php

Reg. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
The Shadow
Forum Members
Forum Members
Posts: 22
Joined: Sun Apr 04, 2010 5:37 pm

Re: News module driving me insane

Post by The Shadow »

Thanks for all of your help Rolf
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News module driving me insane

Post by Rolf »

The Shadow wrote: Thanks for all of your help Rolf
You are welcome  :)
Please put [Solved] in the title of the first post.
You can use 'Modify Post' for this.

®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”