We have a Pastor on Call and wanted this to be easily displayed on our Rock Homepage so people knew who to call in the event someone needed to talk to a pastor. 

1) Create a content channel called Pastor On Call.

    Create it as a Universal Date Range type. Give it one 'Item Attribute' , a person attribute called Pastor.

2) Then add the block on whatever page you want it on.

    Use the 'Content Channel View' Block.

3) Here are the settings we use:

Screen Shot 2019-06-21 at 11.53.00 AM.png

We display 2 per page and sort by Expire Date ascending.

And add a filter on the expire date.

The lava and html to use in the Format box is available in the attached file. (Click the button at the bottom that says Download File)

<html>
<style>
max-width: 100%; 
display:block; 
height: auto;
</style>
{% assign itemCount = Items | Size %}
{% if itemCount > 0 %}

    <div class='panel panel-default'> 
        <div class='panel-heading'>
           <h5 class='panel-title'>Pastor On Call</h5>
        </div>
        <div class='panel-body' style="text-align:center">
           
                {% for item in Items %}
                
                     <th><u>
                  {{ item.StartDateTime | Date:'dddd, MMMM d' }} 
                  {%if item.ExpireDateTime != item.StartDateTime %}
                    - {{ item.ExpireDateTime | Date:'dddd, MMMM d' }} 
                    {% else %} 
                    {% endif %}
                    
                  </u><br>
                   <br><font size="4"><i>{{item.Title}}</i></font></th>
            </tr>
            <tr>
                <td>
                  {%assign pasoncall =item | Attribute:'Pastor','Object'%}
                  <p><img src="{{ 'Global' | Attribute:'PublicApplicationRoot' }}{{ pasoncall.PhotoUrl }}" style="max-width: 100%; border-top-left-radius: 50%; border-top-right-radius: 50%; border-bottom-right-radius: 50%; border-bottom-left-radius: 50%; max-width: 100%; display: block; float: none;"></p>
                </td>
            </tr>
           
             
     
                {% endfor %}
            
        </div>
    </div>
{% endif %}
</html>


4) Now add Content:

Title the Content with the Pastor's Name, set the start date and expire date as the dates/times that they will be pastor on call for and then select the pastor in the Pastor attribute. The block is going to pull the pastor's picture off of their profile. 

Screen Shot 2019-06-21 at 11.48.06 AM.png

5) Now you are good to go! You will see this when the dates become valid for that Pastor on Call.

Screen Shot 2019-06-21 at 11.50.00 AM.png

Or if you display two like we do you would see this:

Screen Shot 2019-06-21 at 11.51.52 AM.png




   Again I am good at making things work, not pretty. so if anyone has any suggestions on design, comment below. 

:)