Closed (fixed)
Project:
Flag Friend
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2009 at 10:25 UTC
Updated:
9 Sep 2009 at 00:00 UTC
Hi
I am working in integrate some features of flag friend with panels, currently I have two finished and I don't know if I will need more, but I think they are situable to be tested in the -dev version.
I've created a content type for exposing flag_friend links (add/remove/cancel) in panels (under Miscellaneous tab, not sure if will be good to create a Flag Friend tab) and another one for exposing the number of friends of the user being accessed.
I am attaching a patch for panels support and a function for calculating the number of friends of an user for flag_friend.module and a zip with the folder structure plugins/content_types with the two content types described above.
| Comment | File | Size | Author |
|---|---|---|---|
| plugins.zip | 3.02 KB | pcambra | |
| flag_friend_panels.patch | 1.15 KB | pcambra |
Comments
Comment #1
sirkitree commentedJust getting to this now. My thanks to you for providing such a clean patch.
The count function is very useful and I'm all about integrating with Panels3. I'm not very savvy on ctools yet, so I'm wondering, does this plugin directory need to be part of my module or do we request these be added to the Panels project? Knowing how well Earl thinks ahead I assume they are just added to my own module, but just wanted clarification.
Comment #2
pcambraI am not sure either, but there are modules, like advanced profile, author pane or content profile that include its own panel content types or relationships. I think ctools only include core elements for Panels, like node, user, taxonomy... anyways it would be good to know what Earl thinks about this.
Let me know if you need some modifications on this patch, I will be happy to help.
Comment #3
sirkitree commentedI talked Earl and he said that yes, as long as hook_ctools_plugin_directory() is implemented properly, it should be no problem at all. I'll give your patch a test tonight and report back. Thanks again.
Comment #4
sirkitree commentedTested and working. Thank you pcambra!