Recent Topics

Extending the calendar plugin

Started by on Dec 14, 2010 – Contents updated: Dec 14, 2010

Dec 14, 2010 17:13    

Hello. Has anyone tries to extend the calendar plugin so that it will display the post titles as well?

Maybe as a nice jquery hover object to preview the title....or just a simple echo $post_title included in the calendar grid.

I've been to able to pull the post title out by modifying the queries in /plugins/_calendar.plugin.php but haven't been able to go much further.

Is there a need for this functionality? Does anyone have any ideas that might further the experimentation I've been doing?

Thanks much.

Aug 05, 2011 23:46

Thought I'd bump this again. Someone asked about it. Any ideas out there?
Thanks much. :)

Aug 06, 2011 03:49

You can add a "title" attribute to generated links, just pass post title as param to "archive_link" method. Then catch it and display

return '<a rel="nofollow" title="'.$post_title.'" href="'.regenerate_url( $this->context_isolation, $url_params ).'">'.format_to_output($text).'</a>';

Form is loading...

Free CMS – This forum is powered by b2evolution CMS, a complete engine for your website.