News module - how not to show post date on pages

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
dlaitila
New Member
New Member
Posts: 8
Joined: Tue May 06, 2008 12:32 am

News module - how not to show post date on pages

Post by dlaitila »

I have read the help section for the News Module already... but it is Greek to me. I don't understand if I need to change the News templates,  if so which one;  or put a certain parameter on the News page. I am using CMSMadeSimple 1.2.4 and the version of news that came with it.

Problem #1
What do I put on the New's page to prevent the posting date from showing? I have news items showing on all of my pages. I'm using 2 columns and the navigation is on the left. However I don't want  to see the date that I submitted the pages. I think it is confusing because people think that the event happens the day it is posted.

Problem #2
I would like the items to be listed with the one that is coming up soonest to be listed first and the other to follow in sequence. I tried putting this in, but it didn't work.

{news sortby="news_date"}


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

Re: News module - how not to show post date on pages

Post by Dr.CSS »

The first one is a call in the templates...

Summary...

{if $entry->formatpostdate}

{$entry->formatpostdate}

{/if}

Detail...

{if $entry->formatpostdate}

{$entry->formatpostdate}

{/if}

You can remove these from the templates or use CSS to not display them...

.NewsSummaryPostdate or/and #NewsPostDetailDate {display:none}

Second is you are trying to get the next event or the one coming up next to show at the top when the default is to show the last posted news item at top so you need to use this option...

sortasc="true" - Sort news items in ascending date order rather than descending.

news_date is the default which is if you add something today and then add something tomorrow then today will be under tomorrow...
Post Reply

Return to “CMSMS Core”