News - Show a whole years articles [SOLVED]

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
phen
New Member
New Member
Posts: 2
Joined: Thu Mar 27, 2008 4:27 pm

News - Show a whole years articles [SOLVED]

Post 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
Last edited by phen on Fri Mar 28, 2008 1:55 pm, edited 1 time in total.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: News - Show a whole years articles

Post by blast2007 »

Also if in italian, here you can find solution for your problem

Regards
blast
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News - Show a whole years articles

Post by calguy1000 »

No, there are no options to do that at this time
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: News - Show a whole years articles

Post 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
Pierre M.

Re: News - Show a whole years articles

Post 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.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: News - Show a whole years articles

Post 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
Pierre M.

Re: News - Show a whole years articles

Post 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
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: News - Show a whole years articles

Post 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
Last edited by blast2007 on Fri Mar 28, 2008 5:26 pm, edited 1 time in total.
alby

Re: News - Show a whole years articles

Post 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
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

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

Post by blast2007 »

Patch added to news tracker

Thanks all
Regards
blast

P.S. now is really [SOLVED]
Last edited by blast2007 on Fri Mar 28, 2008 6:24 pm, edited 1 time in total.
phen
New Member
New Member
Posts: 2
Joined: Thu Mar 27, 2008 4:27 pm

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

Post 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?
alby

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

Post 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
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

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

Post 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
Post Reply

Return to “CMSMS Core”