Andrew, Take a loog in userthemehandler.php, specifically the act method. There is a plugin filter, Plugins::filter( 'theme_act' . $action, $handled, $this->theme). You should be able to use this to call filter_them_act_display_contenttype( $handled, $theme) in your plugin. You can see an example in the podcast plugin, where it calls filter_theme_act_display_podcasts( $handled, $theme). Note that the plugin also creates a new rewrite rule listing UserThemeHandler as the actionhandler, which you can see in the code. There are other plugins which do the same thing, though I can't remember them off hand.
Rick On Mar 7, 8:19 am, Andrew Rickmann <[email protected]> wrote: > Hi, > > I can't quite figure out how to do this so I am hoping someone can > give me some direction. > > I have a plugin that creates a new post type. > > I want to intercept the act_display request for posts of that type and > redirect them elsewhere leaving everything else operating normally. > > From within the theme it would be easy but I am not sure how to go > about it from within a plugin. > > Thanks > > Andrew --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-dev -~----------~----~----~----~------~----~------~--~---
