Adding custom plugins
chlobe - May 26, 2009 - 11:38
| Project: | Topic Hubs |
| Version: | 6.x-1.0 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
This module has revolutionised my site, thanks a million times. Could you give me an indication of level of difficulty in including a custom plugin (aka a view) to the topic hub configuration? I'm guessing not as simple as copying an existing plug in and modifying to include a different view call?

#1
cglobe, sorry for the delay.
Yes is can be that easy depending on what you are trying to do. If the view needs to be filtered by the expression of the topichub you should create your view and make sure you add the view Argument for "Topichub: Expression" then you can follow the model set forth in topichub_most_recent, topichub_most_viewed, etc. If the view does not not need to be filtered in that way, you can always just create a view with a block display and add it to your topichub via panels.
BTW which site are you using this on? We love to see examples of this in the real world. Thanks.
Hope this helps you.
Frank
PS I realize you likely need more info than this to get a custom plugin working, but I figured we can start easy and then as I see what help you/others need I can work it into documentation. So feel free to reply back if you have more questions.
#2
Ok guys I am setting out to try to clone cnn.com as much as possible . I believe this will be good for Drupal and open publish. So the first plugin I want to add is the topichub featured article, with an oversize image http://www.cnn.com/TECH/ .
I am thinking Just copy one of the plugins and do "find and replace"?
Thanks
Great module!