Closed (fixed)
Project:
Content Type Administration by Organic Group
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2008 at 09:45 UTC
Updated:
4 Apr 2008 at 16:14 UTC
Comments
Comment #1
rconstantine commentedWell, I think there are a couple of things to think about here.
The short, quick answer is to simply do a database query to the tables this module owns as all of the data you want is there.
With that said, I'm pretty sure you can create Views to display a particular content type from a certain group using arguments in the URL. You could then use whatever script you are building to check which content types are available to the group and then dynamically create the links for the Views.
Good luck.
Comment #2
seth97 commentedHi!
I have already created the views for all Groups and all content types (i.e. URL:'node/$group/ContentTypeA').
Now I want to display a link to the view (on the group home page) if that specific Group is using that content type.
Don't know how to do this:
Could someone help me with this?
Thanks!
Seth
Comment #3
seth97 commentedThis works, but maybe someone has something smarter?
I added this code in my override of the Group (node-group.tpl.php):
I search for the string '"image";i:X'
Where X can be: 0, 1 or 2
'i:0' not allowed by site admin or not activated by group manager
'i:1' allowed by site admin and activated by group manager
'i:2' required by site admin
If the content type 'image' is required or allowed in the current group I print a link to the view 'gallery'.
Thanks,
Seth
Comment #4
rconstantine commentedLooks like you got it.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.