Page 1 of 1
how does entry_display hook work?
Posted: Tue Apr 04, 2006 6:30 pm
by Shan
hi all,
I am at the tail end of writing a plugin and am stuck. I want to display a large-form month calendar using the entry column.
I know that I can do this using the entry_display hook, but what I don't understand is how to build the URLs that allow me to do this. I have tried parsing thorugh the static pages plugin which does this, but unfortunately this is complete gibberish to me.
Any help would be muchly appreciated. Without this stuff, my plugin is essentially useless.
Re: how does entry_display hook work?
Posted: Wed Apr 05, 2006 11:11 am
by garvinhicking
Hi!
I agree that the static page plugin is too complex an example for that. What would be a better example is the serendipity_event_wrapurl example. This also defines permalinks, I think. Or it works via the index.php?serendipity[subpage]=XXX backwards-compatibility hook.
If that small hinter doesn't help you, please reportr back
Regards,Garvin
Posted: Thu Apr 06, 2006 7:00 am
by Shan
thanks muchly, that example was much simpler to follow.
I have completed to my satisfaction a calendar of events plugin which allows users to add one-time, weekly, and monthly events. It is for a club I am a part of, but for now I am testing it on my own blog. The monthly calendar is visible at
http://www.strangely-normal.com/serendi ... endar.html.
if anyone is interested in seeing the plugin themselves, please let me know. There are a number of bugs I need to squish, but I wanted to get it live.
Posted: Thu Apr 06, 2006 7:01 am
by Shan
thanks muchly, that example was much simpler to follow.
I have completed to my satisfaction a calendar of events plugin which allows users to add one-time, weekly, and monthly events. It is for a club I am a part of, but for now I am testing it on my own blog. The monthly calendar is visible at
http://www.strangely-normal.com/serendi ... endar.html.
if anyone is interested in seeing the plugin themselves, please let me know. There are a number of bugs I need to squish, but I wanted to get it live.
Posted: Thu Apr 06, 2006 11:07 am
by garvinhicking
Hi!
Wow, that calendar really looks nifty! I do think many people would have an interest in this!
Did you create a plugin all new, or did you extend the current serendipity_event_mycalendar plugin? Maybe both plugins could be combined?
Best regards,
Garvin
Posted: Thu Apr 06, 2006 4:11 pm
by Shan
It's all new. There's a lot more in the backend because I had to write it to cater to the non-technical in my club.
I have only tested it on my home server running serendipity 0.9.1 and the server that my domain is hosted on which is running 1.0beta2, so I'm sure there will be a lot of bugs float to the surface as others test it out. That being said, I would love seeing other people able to use it.
Posted: Thu Apr 06, 2006 4:30 pm
by garvinhicking
Hi!
I'd love to get your plugin into our Spartacus repository, but we have to try to keep it simple there, so I'd really love to combine the two plugins into one.
If yours is the more complex one, are there any features that mycalendar can do that yours doesn't? Because then we could use your plugin as a drop-in replacement of that plugin. If they have a different Table structure, we would only need to convert the "old" tables into your new structures, which should not be that hard, I think.
What do you think? Would it be possible for you, and would you be interested into trying to replace the old plugin for that officially?
I only need current users of the plugin to be able to use their old inputs, so they would need to be imported. And the sidebar plugins must be able to format the output similar to the current output, at least as a config option?
Best regards,
Garvin
Posted: Fri Apr 07, 2006 3:05 pm
by Shan
I know the plugin isn't ready for spartacus yet. What I am planning on doing is now that I have a stable version of it, going through and refactoring all the code that needs to be re-written for whatever reason (such as I forgot about the server time offset). my code right now is not what I would consider up to par.
When I complete that, I will release the code on my site, and if you are still interested in integrating it with the original mycalendar plugin, I will work on it.
Posted: Fri Apr 07, 2006 3:49 pm
by garvinhicking
Hi!
Sure, that's great. Take all the time you need, there's no real hurry. I would be very happy if your code is contributed, and I know it takes time to polish up all things.
Keep us posted, and of course: Have fun!
Best regards,
Garvin