We wanted groups to be able to send group specific content to their volunteers for each week like previously in PCO. 

Here's how we did it:

  1. Create a Group Attribute called Group Content Channel (We call ours Team Resources). The attribute should be a field type of Content Channel. You can do this by going to the group type settings of each group type that needs content, and adding a group attribute here: 
  2. Screen_Shot_2022-09-14_at_3.16.22_PM.png

    2. Build your content channels. Because we knew all of our content channels would need both videos and pdfs we created a content channel type, so that we would only have to make changes in one place. You can do this by going to the CMS Configuration and Content Channel Types. Here is how we configured ours: 

    Screen_Shot_2022-09-14_at_3.21.37_PM.png

    Screen_Shot_2022-09-14_at_3.21.42_PM.png

    The attributes we use are PDF Names (Text fields), PDFs are Files Types, Videos are Wistia Media Watch Type (If you don't use Wistia, you can use the Media Watch attribute type.

    3. Build content channels with that content channel type! 

    4. Attach content channels to the appropriate groups, do this by editing the group and editing the group attributes: 

    Screen_Shot_2022-09-14_at_3.28.45_PM.png

    Hit save and the content channel is attached! 


    We have our content displayed in our Rock Mobile app, if you want to do that, reach out and we can help.

    To set up for Web here is how to do that: 

    1. Create a web page.

    2. Put two html blocks on the page. 

    3. For the first block we have a block that lists all the serve teams a person is on.

    Screen_Shot_2022-09-14_at_3.39.05_PM.png Here is what it looks like. 

    Here is the lava (you will need to change Group Type Ids and Page Numbers to match the new page you built.) : 

      {% assign servingGroupCount = CurrentPerson | Groups: "23",'All' | Size %}
                    <center class="mb-4">
                    {% if groups  > 0 %}
    <h2><u style="text-underline-position:under">My Serving Teams</u></h2>
    <h2 class="dark-green light">Click on a team below to see available resources.</h2>
    {% assign groupMembers = CurrentPerson | Groups: "23",'All' %}

    <h2 style="font-weight:300">{% for groupMember in groupMembers %}
    {%assign groupid = groupMember.Group, 'Object'%}
        {%- assign groupResChanGuid = groupid | Attribute:'TeamResources','RawValue' -%}
       <a href='https://hillsideonline.com/page/1996?ResChan={{groupResChanGuid}}&Name={{groupMember.Group.Name}}'>{{ groupMember.Group.Name }}</a><br>
    {% endfor %}
    </h2>

    {% else %}

    {% endif %}
    </center>
4. The second block Looks like this after you click on a team: 
Screen_Shot_2022-09-14_at_3.39.54_PM.png
When you click on a week the block changes to this with videos and/or PDFs:
Screen_Shot_2022-09-14_at_3.41.03_PM.png
Here is the code for that Block (You will need to update the page numbers in this as well, This si specifically code to display wistia videos, so you would have to change video code if you use another provider.): 
{%assign groupResChanGuid2 = PageParameter.ResChan %}
{%assign name = PageParameter.Name%}
<center><h2>{{name}} Resources</h2></center>
{%if groupResChanGuid2 != null %}
{%-contentchannel where:'Guid == "{{groupResChanGuid2}}"' securityenabled:'false' -%}
          {%-for contentchannel in contentchannelItems-%}
          {%-assign groupResChanId = contentchannel.Id-%}
          {%-endfor-%}
          {%-endcontentchannel-%}
                {%- contentchannelitem where:'ContentChannelId == "{{groupResChanId}}" && ExpireDateTime >= "{{ 'Now' | Date:'M/d/yyyy' }}" && StartDateTime <= "{{ 'Now' | Date:'M/d/yyyy'}}" && Status==2' sort:'StartDateTime desc' limit:'3' securityenabled:'false'-%}
                
         {%for contentchannelitem in contentchannelitemItems%}
         <a href="https://hillsideonline.com/page/1996?Week={{contentchannelitem.Guid}}&Name={{name}}" class="btn hcc-btn-primary btn-gotham btn-block ">Week of {{contentchannelitem | Attribute:'SundayDate'}}</a>
         
        <br>              
             {%endfor%}
                        {%endcontentchannelitem%}
                      {%endif%}  
                        
                        
                        
{%- assign Week2 = PageParameter.Week -%}
           
  
        {%if Week2 1= null %}
        <!-- Get latest resource from the channel -->
        {%- contentchannelitem where:'Guid=="{{Week2}}"' -%}
          {%assign test = contentchannelitem.Id%}
            {%- assign topic = contentchannelitem.Title -%}
            {% assign conguid = contentchannelitem.Guid%}
            {%- assign str = contentchannelitem | Attribute:'LinkAlternative','RawValue' -%}
            {%- assign videoHashKey = contentchannelitem | Attribute:'Video','RawValue' -%}
            {%assign video1 = contentchannelitem | Attribute:'Video1'%}
            {%assign video2 = contentchannelitem | Attribute:'Video2'%}
            {%assign video3 = contentchannelitem | Attribute:'Video3'%}
            {%assign video4= contentchannelitem | Attribute:'Video4'%}

              {%- assign videoHashKey1 = contentchannelitem | Attribute:'Video1','RawValue' -%}
                {%- assign videoHashKey2 = contentchannelitem | Attribute:'Video2','RawValue' -%}
                  {%- assign videoHashKey3 = contentchannelitem | Attribute:'Video3','RawValue' -%}
                    {%- assign videoHashKey4 = contentchannelitem | Attribute:'Video4','RawValue' -%}
            {%- assign leaderGuide = contentchannelitem | Attribute:'Questions','RawValue' -%}
             {%- assign MSGuide = contentchannelitem | Attribute:'MSQuestions','RawValue' -%}
 {%- assign PDF1 = contentchannelitem | Attribute:'PDF1','RawValue' -%}
  {%- assign PDF1Name = contentchannelitem | Attribute:'PDF1Name' -%}
   {%- assign PDF2 = contentchannelitem | Attribute:'PDF2','RawValue' -%}
  {%- assign PDF2Name = contentchannelitem | Attribute:'PDF2Name' -%}
 {%- assign PDF3 = contentchannelitem | Attribute:'PDF3','RawValue' -%}
  {%- assign PDF3Name = contentchannelitem | Attribute:'PDF3Name' -%}
 {%- assign PDF4 = contentchannelitem | Attribute:'PDF4','RawValue' -%}
  {%- assign PDF4Name = contentchannelitem | Attribute:'PDF4Name' -%}
   {%- assign SundayDate = contentchannelitem | Attribute:'SundayDate' -%}
   {%- assign Announcement = contentchannelitem | Attribute:'Announcement' -%}
            {%- assign ST = contentchannelitem | Attribute:'SeriesTitle' -%}
            {%- assign SW = contentchannelitem | Attribute:'SeriesWeek' -%}
            <!-- Determine if there are any conversations -->
            {%- assign conversationCount = contentchannelitem.ChildItems | Size | -%}
            {%- assign hasConversations = false -%}
            {%- if conversationCount > 0 -%}
                {%- assign hasConversations = true -%}
            {%- endif -%}
        {%- endcontentchannelitem -%}
        {% if videoHashKey != '' %}
            <!-- Get video from the database -->
            {%- wistiamedia where:'WistiaHashedId == "{{ videoHashKey }}"' limit:'1' -%}
                {%- assign wistiaMediaData = wistiamedia.MediaData | FromJSON -%}
                
                <!-- Get video filer preferring 720p but falling back to any mp4 -->
                {%- assign videoUrl = wistiaMediaData.assets | Where:'contentType', 'video/mp4' | Where:'height', 720 | Select:'url' | First -%}
                
                {%- if videoUrl == null -%}
                    {%- assign videoUrl = wistiaMediaData.assets | Where:'contentType', 'video/mp4' | Sort:'height desc' | Select:'url' | First -%}
                {%- endif -%}
                {%- assign videoUrl = videoUrl | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.mp4' -%}
                
                <!-- Get video thumbnail -->
                {%- assign videoThumbnailUrl = wistiaMediaData.assets | Where:'type', 'StillImageFile' | Select:'url' | First -%}
                {%- assign videoThumbnailUrl = videoThumbnailUrl | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.jpg' -%}
            {%- endwistiamedia -%}
        {%- endif -%}
        
         {% if videoHashKey1 != '' %}
            <!-- Get video from the database -->
            {%- wistiamedia where:'WistiaHashedId == "{{ videoHashKey1 }}"' limit:'1' -%}
                {%- assign wistiaMediaData1 = wistiamedia.MediaData | FromJSON -%}
                
                <!-- Get video filer preferring 720p but falling back to any mp4 -->
                {%- assign videoUrl1 = wistiaMediaData1.assets | Where:'contentType', 'video/mp4' | Where:'height', 720 | Select:'url' | First -%}
                
                {%- if videoUrl1 == null -%}
                    {%- assign videoUrl1 = wistiaMediaData1.assets | Where:'contentType', 'video/mp4' | Sort:'height desc' | Select:'url' | First -%}
                {%- endif -%}
                {%- assign videoUrl1 = videoUrl1 | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.mp4' -%}
                
                <!-- Get video thumbnail -->
                {%- assign videoThumbnailUrl1 = wistiaMediaData1.assets | Where:'type', 'StillImageFile' | Select:'url' | First -%}
                {%- assign videoThumbnailUrl1 = videoThumbnailUrl1 | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.jpg' -%}
            {%- endwistiamedia -%}
        {%- endif -%}
        
           {% if videoHashKey2 != '' %}
            <!-- Get video from the database -->
            {%- wistiamedia where:'WistiaHashedId == "{{ videoHashKey2 }}"' limit:'1' -%}
                {%- assign wistiaMediaData2 = wistiamedia.MediaData | FromJSON -%}
                
                <!-- Get video filer preferring 720p but falling back to any mp4 -->
                {%- assign videoUrl2 = wistiaMediaData2.assets | Where:'contentType', 'video/mp4' | Where:'height', 720 | Select:'url' | First -%}
                
                {%- if videoUrl2 == null -%}
                    {%- assign videoUrl2 = wistiaMediaData2.assets | Where:'contentType', 'video/mp4' | Sort:'height desc' | Select:'url' | First -%}
                {%- endif -%}
                {%- assign videoUrl2 = videoUrl2 | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.mp4' -%}
                
                <!-- Get video thumbnail -->
                {%- assign videoThumbnailUrl2 = wistiaMediaData2.assets | Where:'type', 'StillImageFile' | Select:'url' | First -%}
                {%- assign videoThumbnailUrl2 = videoThumbnailUrl2 | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.jpg' -%}
            {%- endwistiamedia -%}
        {%- endif -%}
        
           {% if videoHashKey3 != '' %}
            <!-- Get video from the database -->
            {%- wistiamedia where:'WistiaHashedId == "{{ videoHashKey3 }}"' limit:'1' -%}
                {%- assign wistiaMediaData3 = wistiamedia.MediaData | FromJSON -%}
                
                <!-- Get video filer preferring 720p but falling back to any mp4 -->
                {%- assign videoUrl3 = wistiaMediaData3.assets | Where:'contentType', 'video/mp4' | Where:'height', 720 | Select:'url' | First -%}
                
                {%- if videoUrl3 == null -%}
                    {%- assign videoUrl3 = wistiaMediaData3.assets | Where:'contentType', 'video/mp4' | Sort:'height desc' | Select:'url' | First -%}
                {%- endif -%}
                {%- assign videoUrl3 = videoUrl3 | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.mp4' -%}
                
                <!-- Get video thumbnail -->
                {%- assign videoThumbnailUrl3 = wistiaMediaData3.assets | Where:'type', 'StillImageFile' | Select:'url' | First -%}
                {%- assign videoThumbnailUrl3 = videoThumbnailUrl3 | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.jpg' -%}
            {%- endwistiamedia -%}
        {%- endif -%}
        
           {% if videoHashKey4 != '' %}
            <!-- Get video from the database -->
            {%- wistiamedia where:'WistiaHashedId == "{{ videoHashKey4 }}"' limit:'1' -%}
                {%- assign wistiaMediaData4 = wistiamedia.MediaData | FromJSON -%}
                
                <!-- Get video filer preferring 720p but falling back to any mp4 -->
                {%- assign videoUrl4 = wistiaMediaData4.assets | Where:'contentType', 'video/mp4' | Where:'height', 720 | Select:'url' | First -%}
                
                {%- if videoUrl4 == null -%}
                    {%- assign videoUrl4 = wistiaMediaData4.assets | Where:'contentType', 'video/mp4' | Sort:'height desc' | Select:'url' | First -%}
                {%- endif -%}
                {%- assign videoUrl4 = videoUrl4 | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.mp4' -%}
                
                <!-- Get video thumbnail -->
                {%- assign videoThumbnailUrl4 = wistiaMediaData4.assets | Where:'type', 'StillImageFile' | Select:'url' | First -%}
                {%- assign videoThumbnailUrl4 = videoThumbnailUrl4 | Replace:'http://embed.wistia','https://embed-ssl.wistia' | Replace:'.bin','/file.jpg' -%}
            {%- endwistiamedia -%}
        {%- endif -%}
        
        
        

<center><h3>Week: {{SundayDate}}</h3></center>
                     
            
           
        
           
    
           
                     
                {%- if PDF1 != "" -%}
                <a href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}/GetFile.ashx?Guid={{ PDF1 }}" class="btn hcc-btn-primary btn-gotham btn-block ">{{PDF1Name}}</a>
                {%- endif -%}
                 
    
               
               
              
   
                {%- if PDF2 != "" -%}
                <a href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}/GetFile.ashx?Guid={{ PDF2 }}" class="btn hcc-btn-primary btn-gotham btn-block ">{{PDF2Name}}</a>
                {%- endif -%}
                 
    
               
               
              
        
                {%- if PDF3 != "" -%}
                <a href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}/GetFile.ashx?Guid={{ PDF3 }}" class="btn hcc-btn-primary btn-gotham btn-block ">{{PDF3Name}}</a>
                {%- endif -%}
                 
    
               
               
              
        
                {%- if PDF4 != "" -%}
                <a href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}/GetFile.ashx?Guid={{ PDF4 }}" class="btn hcc-btn-primary btn-gotham btn-block ">{{PDF4Name}}</a>
                {%- endif -%}
                 <br>
                 
                 {{ video1 }}<br>
                 {{video2}}<br>
                 {{video3}}<br>
                 {{video4}}<br>
                 {%endif%}
               

Happy Resourcing!!