Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > GROUPS - permission issues View modes: 
User avatar
Member
Member
eagleag - 11/17/2010 10:23:14 AM
   
GROUPS - permission issues
hi,
I've added group functionality.
It's almost 100% working except one small but important issue.

My group admin cant seen to add new pages unless I unchecked CHECK GROUP PERMISSIONS in the 2 webpart that are to do with contributions.
but then any group user can add a page.

I'm pretty sure there is something small missing, so here are screen shot of all needed info.

User image
----------------------------------------------------------

User image
------------------------------------------------------------------

User image
----------------------------------------------------

User image
---

ANY IDEA WHAT WRONG?

THANKS :)


User avatar
Member
Member
kentico_michal - 11/19/2010 9:12:46 AM
   
RE:GROUPS - permission issues
Hi,

Thank you for detailed description of your issue.

Could you please check if in the field Owned by group in Properties of your group document (Group Pages - Your group) is set Your group? If not could you please set it this way and check Inherit by child documents option so that Pages document will be owned by your group as well?

Best regards,
Michal Legen

User avatar
Member
Member
eagleag - 11/20/2010 2:51:11 AM
   
RE:GROUPS - permission issues
THANKS :)
I new it was something simple just cant believe it was that small :)

I didn't see this in Kentico CMS Community Site Guide.
Where should I have seen that this setting is needed? this way I;; know where to look in the future.

To make thing easier on site admin I can put a macro in the field Owned by group:, is this correct?
The macro can get the "Display name" of document. thenk when admin cretes new group (copy pasting the TEMPLATE + PAGES in cmsdesk), the macro will already be in place and thus Owned by group: won't need to be manually set.
could use: {%CurrentDocument.DocumentName%}

only problem is that Owned by group: field -> cant type in it, only select an option from popup. is it a problem to change this field to an textbox (so can enter macro)?

Many thanks :)

User avatar
Member
Member
kentico_michal - 11/25/2010 6:35:01 AM
   
RE:GROUPS - permission issues
Hi,

Regrettably, SelectDocumentGroup control, that is used in this case ( ~\CMSAdminControls\UI\Selectors\SelectDocumentGroup.ascx.cs ) does not support inserting macros.
However, if you want to achieve this functionality, I would recommend you to consider using Custom TreeNode handler. You could for example use OnBeforeInsert method, where you could get the Group Owner of the parent node ( CMS_Tree table -> NodeGroupID column ) and set this value also to the newly created node/ child document. This way, setting Owned by group property would be necessary only on Template page. Each newly created child document would inherit and set this property automatically.

Best regards,
Michal Legen