Needs review
Project:
Organic groups content links
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2012 at 05:03 UTC
Updated:
5 Jan 2013 at 20:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jgraham commentedIt seems like moving forward either;
1. this will have a dependency on entityreference_prepopulate.
2. entityreference_prepopulate will supersede this module
Amitai do you have plans for this functionality already? Can you comment how entity reference prepopulate fits in related to the functionality of this module?
Comment #2
jgraham commentedAttached patch updates this to work with entityreference_prepopulate.
1. Apply patch to og_node_link
2. For the appropriate content types enable the "Enable Entity reference prepopulate" on the og_group_ref field setting.
Comment #3
amitaibuI have committed a plugin to er_prepopulate that is intended to replace OG's "node_create_links" plugin -- http://drupalcode.org/project/entityreference_prepopulate.git/commitdiff...
This module is in fact, most of the time not needed, as we can get the same result with the above plugins, and without needing to store it via field -- unless, of course, you *need* to store it :)
btw, looking for a new maintainer for the module...
Comment #4
Jackinloadup commentedAmitaibu - could you explain how to use the code in that commit?
I'm not sure how to get entityreference_prepopulate_node_prepopulate_content_type_render to render on screen
Thanks
Comment #5
liquidcms commentedfor what its worth; this is what i have so far figured out:
- OG Content Links doesnt work for og 2.x
- entityreference_prepopulate simply allows prepopulating any entity by specifying its field and a value in the url; so for creating group content and preassigning its group:
e.g. node/add/survey?og_group_ref=27
as for the infamous "group details" block from D6 which included the "create content links" still a long ways to go to get that:
- i think you need a view or block code that would first figure out all the node/entity types that are allowed under the group: add article, add news, etc
- then you need to know the gid (in a view i haven't sorted out how to tell BOTH a group node's gid and group content's gid; i can add both nid and a related to group nid and then a php field to figure out which one to use; but seems silly to need that)
pretty messy; but that's what i have at the moment.
Comment #6
Jackinloadup commentedThe attached patch doesn't work with the patch from #2 in any way.
This patch allows this module to work with OG 2.x in my experience.
This is a temp fix until i figure out how to incorporate Amitaibu's entityreference_prepopulate
Comment #7
playfulwolf commentedany news about final version?
Comment #8
johaziel#6 not working with og-7.x-2.x-beta3
I got a
Fatal error: Call to undefined function og_get_group_ids() in /srv/d_ekomundi/www/ekomundi.org/htdocs/sites/all/modules/og_node_link/og_node_link.module on line 81
With the latest version of og : 7.x-2.0-beta3
So here a patch to work with og-7.x-2.0-beta3
Comment #9
user654 commented.
Comment #10
user654 commented.