Hi.
I wrote my first EE plugin this morning to dynamically determine a date. The plugin works as far as I can tell when you put the tag right in the template, but it doesn’t seem to work when used in a {exp:weblog:entries} parameter. Plugins can be used in parameters right?
Thanks,
Ben.
Hi Ben,
Tricky this one. They are not (I think) totally supported. Whilst they can work it all depends on how you have programmed it and how you need it to work. I have a plugin at the bottom of my post here that I made which does do what you are talking about, well what I mean by that is that my status plugin is used as a parameter inside a weblog tag but not all ways will always work.
Can sometimes be a bit hit and miss depending on what you are doing.
Hope that helps.
Best wishes,
Mark
That does help. It’s a tricky situation. I’m writing a site for an academic institution, and they’ve got to display posts according to school year. So I wrote the plugin to figure out what the proper years are for current posts based on whether or not the current date was before Sept. 1. It works in that it outputs “2007”, but doesn’t work in the parameters (year=”{exp:schoolyear:begin}”). I guess this is just one of those times.
Hi Ben,
Don’t give up just yet 😉
If you download my Retrieve Statuses plugin and open it up you can possibly see if I am doing anything different to the way you are at the moment. That may give you a hand in getting yours to work?
Hope that helps?
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.