Page 1 of 1

News - Show a whole years articles [SOLVED]

Posted: Thu Mar 27, 2008 4:32 pm
by phen
Im looking for a easy way to create a listing of a whole years articles. Something like:

{news start_date="07-01-01" end_date="07-12-31"}

Is there any way to do this? All help is really appreciated!

---

Thanks blast2007 for this solution:
http://forum.cmsmadesimple.org/index.ph ... 96352.html

Re: News - Show a whole years articles

Posted: Thu Mar 27, 2008 5:08 pm
by blast2007
Also if in italian, here you can find solution for your problem

Regards
blast

Re: News - Show a whole years articles

Posted: Thu Mar 27, 2008 5:13 pm
by calguy1000
No, there are no options to do that at this time

Re: News - Show a whole years articles

Posted: Thu Mar 27, 2008 5:19 pm
by blast2007
calguy1000 wrote: No, there are no options to do that at this time
"There are no options  to do that at this time", without hacking news module.

If you follow instructions above you can use two new parameters: startperiod and endperiod.

Regards
blast

Re: News - Show a whole years articles

Posted: Fri Mar 28, 2008 1:52 pm
by Pierre M.
blast2007 wrote: (...)hacking news module.

If you follow instructions above you can use two new parameters: startperiod and endperiod.
@blast & Alby : have you submitted your patches in the forge ?

Pierre M.

Re: News - Show a whole years articles

Posted: Fri Mar 28, 2008 2:00 pm
by blast2007
Pierre M. wrote: @blast & Alby : have you submitted your patches in the forge ?
I've some troubles while creating CVS patch file.

I can post (in the forge) a detailed explanation of modified files for adding these new features.

Let me know your opinion.

Regards
blast

Re: News - Show a whole years articles

Posted: Fri Mar 28, 2008 2:39 pm
by Pierre M.
@blast : I have no opinion, I have read the DevTeam can't track bug reports and patches in the forum but in the forge.

Pierre

Re: News - Show a whole years articles

Posted: Fri Mar 28, 2008 5:22 pm
by blast2007
Pierre M. wrote: @blast : I have no opinion, I have read the DevTeam can't track bug reports and patches in the forum but in the forge.

Pierre
Dear Pierre,
following "The steps" of this thread,
point a) says: "Discuss your potential change with the project admin(s), or others in the forum or IRC channel"

My previous post was related to the mentioned point a)

Calguy (I think he's admin of news module) closed discussion saying that's it's impossible to achieve this particular function, ignoring my post, so I thought that my contribute wasn't interesting.

If needed I can try to post a patch, but I think that news "owner" should express his opinion regarding usefulness of this hack.

Regards
blast

Edit:  Alby create diff file,  check here. Thanks again to him

Re: News - Show a whole years articles

Posted: Fri Mar 28, 2008 5:27 pm
by alby
Pierre M. wrote: @blast & Alby : have you submitted your patches in the forge ?
I had misunderstood.
I thought that blast2007 had posted the patch files.
Here there is the patch

@Blast: upload this patch in News tracker with a little description for dev team

Alby

Re: News - Show a whole years articles [SOLVED]

Posted: Fri Mar 28, 2008 5:49 pm
by blast2007
Patch added to news tracker

Thanks all
Regards
blast

P.S. now is really [SOLVED]

Re: News - Show a whole years articles [SOLVED]

Posted: Fri Apr 11, 2008 1:03 pm
by phen
When i updated to the latest CMSMS version I lost the changes i had made manually to get this to work. I applied the .diff file (no problem with that) but something isnt working. When i browse a news page thats using the "startperiod" it shows all news, not just the ones between the specified dates. No error message or nothing. Anyone knows what to do?

Re: News - Show a whole years articles [SOLVED]

Posted: Fri Apr 11, 2008 1:20 pm
by alby
phen wrote: When i updated to the latest CMSMS version I lost the changes i had made manually to get this to work. I applied the .diff file (no problem with that) but something isnt working. When i browse a news page thats using the "startperiod" it shows all news, not just the ones between the specified dates. No error message or nothing. Anyone knows what to do?
My mistake with copy/paste.
In prev diff file if startperiod is set endperiod was not considered.
I think that blast have submitted again the new diff file in tracker or download from italian forum (view link at Reply #8)

Alby

Re: News - Show a whole years articles [SOLVED]

Posted: Fri Apr 11, 2008 2:04 pm
by blast2007
alby wrote: I think that blast have submitted again the new diff file in tracker or download from italian forum (view link at Reply #8)
Yes, it was done.

Here you can download bugfixed patch

Regards
blast