Closed (fixed)
Project:
ELMS
Version:
6.x-1.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2012 at 08:12 UTC
Updated:
12 Oct 2012 at 15:41 UTC
Hi
How to check in elms site whether current viewed node is a course content ? Is there any specific functions defined in elms custom modules.
Tks in advance
-Vil
Comments
Comment #1
btopro commentedshouldn't need anything outside of drupal core to do this
If you want a specific content type being accessed, you can do the following
Elms Content defines the page, link and folder types. ELMS site defines site and ELMS parent defines parent (just a high level organizer).
As much as possible ELMS seeks to simply implement conventions established by OG and Spaces when it comes to data management and organization.
Comment #2
invincible1388 commentedHi
I have added a custom content type in course system.But when i check in my custom node-type devel fields, the "og_groups_both" field comes empty.
Its populated in other node types.So what has to be done so that "og_groups_both" field comes populated with appropriate group-id's.
Tks,
-Vil
Comment #3
btopro commentedDid you make sure it's been told that it's allowed to be posted in groups? It need to have the setting of group content selected.
Comment #4
invincible1388 commentedI have set the permissions in the group settings to "Standard group post (typically only author may edit)" for my custom node type.Still the "og_groups_both" field is coming empty for the custom node type. The field has the group information in other node type.
Is there any other configuration I am missing?
Tks
Vil
Comment #5
btopro commentedDo you have a menu item link within a group that has a path that makes sense to the group. For example mysite.com/node/add/type, even when accessed within a group will NOT associate it to the group. Make a menu link that you have access to within groups (like a menu that's in a block or navigation and place that in the left region via context). Then make sure the link has
Persistant URL behavior
All links are normally rewritten to contain the active persistant url elements. You may set this item to maintain existing modifications (the default), or to discard them.
BEHAVIOR: MAINTAIN
If you don't maintain the PURL setting for the link it won't modify node/add/type to {currentgroup}/node/add/type and then won't be able to populate the group setting automatically.
Comment #6
invincible1388 commentedGot it running by group->nid by calling og_get_group_context() which also returns the group nid.
Tks
-Vil
Comment #7
btopro commentedog_get_group_context() is your friend at all times :)