Closed (fixed)
Project:
OG User Roles
Version:
5.x-2.7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Dec 2007 at 00:51 UTC
Updated:
24 Jan 2008 at 20:22 UTC
Jump to comment: Most recent file
Hi:
It would be nice to have a generic page for selecting the node type we want to create (like node/add but only with the content types we can create in that group) so we can put a link named 'create content' in the details block and perhaps remove the 'create xxxx' links.
This is more usable since the user is presented with a textual description of each content type he can create and reduces the number of links in the details block.
You don't have to change the details block you don't want but the page would be useful anyway...
Thanks.-
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | og_user_roles.module.5.x-2.7.patch | 12.43 KB | somebodysysop |
Comments
Comment #1
moshe weitzman commenteda contrib module ought to do this.
Comment #2
neurojavi commentedHi!
Sorry moshe, you're right. This feature can be implemented in user roles module since this module deals with a modified version of node add.
I have write some code for this page to be shown and to show a new link "Create content" in de group details block:
Changed og_user_roles_ognodeadd() function (note the new else after the if ($type) { ... })
And this funtion provides the new "create content" link:
I know that perhaps this is not the module for this kind of user interface enhancements but there is the only easy way to go without replicating all you 'node add groupication' code. If you like this patch I'll post another feature request about porting some common code to another module.
Thanks to moshe and SomebodySysop for his clean code. It's very nice to work with it!
Comment #3
somebodysysop commentedPretty slick piece of code. I was going to ask why would anyone want this, but I just went ahead and tried it out and it works pretty cool. EXCEPT, this bit:
Apparently, the node/add process will change "-" back to "_", but ognodeadd doesn't, so I had to remove this. If someone else out there knows why this is in the node.module in the first place, and possible ramifcations of removing it, I'd like to know.
Other than that, really good work. Thanks for taking the time to put it together
Please test out the patch and let me know if it works for you! Note that the patch must be applied to a clean download of OGR 2.6 release.
Comment #4
somebodysysop commentedThis patch now included in latest OGR release.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.