Great module, many thanks for all the work.
Please may I propose a small feature addition:
If a new freelink is created and if the parent page belongs to an Organic Group, please can the freelink module pass the Group ID on to the node creation form?
So instead of creating a link like /node/add/wiki?edit[title]=Test the freelink module would add the Group ID to the URL: /node/add/wiki?edit[title]=Test&gids[]=83
Many thanks,
Jack
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | freelinking_organic_groups_v2.patch | 4.35 KB | dan_aka_jack |
| #1 | freelinking_organic_groups.patch | 3.3 KB | dan_aka_jack |
Comments
Comment #1
dan_aka_jack commentedI've developed a patch which makes Freelinking aware of Organic Groups. If the node in which the freelink appears is in an organic group and if the freelink doesn't exist yet then the node creation form is made aware of which group the original page was in. The patch seems to work for me. I haven't noticed any problems yet.
If the original node isn't a member of an organic group then freelinking behaves exactly as it would without my patch.
The patch was made against freelinking.module version 6.x-1.7 (which I believe is the same as 6.x-1.x-dev at the moment).
EDIT: PLEASE IGNORE THIS PATCH AND USE THE ONE I POSTED IN COMMENT #3...
Many thanks,
Jack
Comment #2
dan_aka_jack commentedComment #3
dan_aka_jack commentedHere's a new patch. This patch is made against freelinking.module version 6.x-1.7 (i.e. only apply this new patch; ignore the first patch I submitted).
The difference between my first patch and this new patch is that this new patch creates an admin settings option to allow the administrator to enable the feature. If Organic Groups isn't installed then the option is automatically disabled.
I'm using this patch on a website I'm developing and so far I haven't noticed any adverse side effects although I haven't done a rigorous test yet.
Comment #4
eafarris commentedI don't use OG myself -- can anyone test this?
Comment #5
dugh commentedsubscribe
Comment #6
nlambson commentedI tried this patch on Drupal 6.13 and received the following error:
Assertion failed: hunk, file patch.c, line 321
This application has requested the Run time to terminate it in an unusual way. Please contact the application's support team for more information.
Comment #7
eafarris commentedUser reports patch does not apply.
Comment #8
markwk commentedAny developments on a patch for OG incorporation with Freelinking? I'm having a serious problem currently of one group's links being linked to entirely different group.
Comment #9
soulfroyssubscribe
Comment #10
juampynr commentedI can confirm this feature is implemented in freelinking 6.x-3.1.
Comment #12
zach.bimson commentedHas anyone done this for 7.x yet? its exactly what i need...