Groups vs Private
Posted: 21 February 2010 06:17 PM   Ignore ]  
Newbie
Rank
Total Posts:  18
Joined  2009-09-30

I’m trying to create 2 columns of resource documents. 1 column is for forms that should be visible to all of my “Clients” member group. The other column is for documents that should only be visible to a particular member.

I set up a Resource group called General Client Forms. I give Download/View permission to Owner and Group, but only select the member group Clients and do not add any individual members.

I set up another Resource group for my test client called John Smith. I give Download/View permission to Owner and Group too. (It would seem that I should set that to only owner, but I want my admin to upload files for the client.) I don’t select any groups and only select the member this group should be for.

My code for the Group forms column is:

<ul id="formlist">
           
{exp:weblog:entries weblog="clientdocs" resource_permission="group" resource_action="view" resource_all_groups="no" limit="5" resource_group_id="5"}  
             {exp
:resources:member_groups permission="group" action="view"}
               {if resource_is_allowed}
                 
<li><a href="{resource_download_link}">{title}</a></li>
               
{/if}
             {
/exp:resources:member_groups}
           {
/exp:weblog:entries}
             
</ul

My code for the individual resources is:

<ul id="reportlist">
           
{exp:weblog:entries weblog="clientdocs" resource_permission="private" resource_action="view" resource_all_groups="no" limit="5"}  
             {exp
:resources:member_groups permission="private" action="view"}
               {if resource_is_allowed}
                 
<li><a href="{resource_download_link}">{title}</a></li>
               
{/if}
             {
/exp:resources:member_groups}
           {
/exp:weblog:entries}
             
</ul

I create 2 test resources: 1 test document is for the General Forms resource group. 1 test document is for the John Smith resource group.

The problem is that my 2 test documents appear in both columns.

In some tests, for the John Smith resource group, I uncheck the Group permissions, then the file doesn’t show up in either list. The system won’t let me uncheck the Owners boxes, so I can’t test that.

What am I missing?

Profile
 
Posted: 23 February 2010 01:31 AM   Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Hey Marc,

I found this problem last night, we have a new build coming out tomorrow (1.8) with a couple other fixes as well. Thanks for your post.

Signature 

Mike

HCC Development

Profile
 
   
 
 

Join our Mailing List