Page 1 of 1

News startdate, how to make it go older than 10 years? [solved]

Posted: Wed Aug 25, 2010 5:03 pm
by cdndesigns
I have a client using the News module for newspaper journal column archives.  Current startdate pulldown menu offers only back to 2000, she is trying to add archived columns prior to 2000.  

I've scratched my head looking through the admin.php files, the lang files, template files.. haven't found it in any of the obvious places.  In the html code of the "add articles" page I can see the html show up for all the "option" pulldown menu - seems like if I could just add more years there it would  fix it, but I can't find the file that feeds that!  (tears hair out)

I usually know how to modify my CMSMS files myself, but this one stumped me.

What file contains the startdate dropdown options?  And will there be display issues in the news displays if files are older than 10 years old?  Is there something in the php programming that days "display all news articles in last ___ days"? or will it display 20-year old articles no problem once we edit the startdate dropdown to include older ones?

Thanks in advance!!  

Re: News startdate, how to make it go older than 10 years?

Posted: Wed Aug 25, 2010 5:23 pm
by Rolf
Hello cdndesigns,

You can change this in the news admin template:
/module/News/templates/editarticle.tpl

For example Line 33 :

Code: Select all

<p class="pageinput">{html_select_date prefix=$postdateprefix time=$postdate start_year="-10" end_year="+15"} {html_select_time prefix=$postdateprefix time=$postdate}</p>

Also read this article how to change this template without the possibility to overwrite it again when upgrading.
http://calguy1000.com/Blogs/6/60/custom ... lates.html

grtz. Rolf

Re: News startdate, how to make it go older than 10 years?

Posted: Thu Aug 26, 2010 1:07 am
by cdndesigns
Marvelous, thank you Rolf!!  There it was.. hiding (not in plain sight!) lol.....

Got er fixed up.  ;D