Developer Docs - Mobile Docs - Structured Content View
Displays a structured content channel item for the user to view and fill out.
This block displays structured content from Rock in the app. You can use this to display interactive sermon notes with tap-to-reveal areas and note-taking areas.
Block Settings
Content Channel
You'll see a channel called "Message Notes" that comes out of the box with Rock, so you typically won't need to set this up manually unless you have another purpose in mind. When editing a content channel, you can check the Is Structured Content option to enable this functionality. This will change the Default Content Control option to Editor Tool Configuration.
Adding new child items to this content channel will allow you to edit the structured content with a rich editor. Check out the Supported Formatting section to see what's available. In order to link this note item to a Message, simply add it as a child to the content channel item for the Message.
Mobile App
In the app, you'll need a page with the Structured Content View block added. Thankfully there aren't any block settings to worry about, so you'll just need to add a link to this page that passes context using the ItemGuid query string with a value of the content channel item GUID. In the case of Message Notes, you can use Lava to look at the ChildItems of a message to get the Notes/Structured Content item.
{% assign typeGuid = '48951e97-0e45-4494-b87c-4eb9fca067eb' %}
{% assign noteItem = '' %}
{% for childItem in Item.ChildItems %}
{% if childItem.ChildContentChannelItem.ContentChannelType.Guid == typeGuid %}
{% assign noteItem = childItem.ChildContentChannelItem %}
{% break %}
{% endif %}
{% endfor %}
{% if noteItem != '' %}
{% assign noteGuid = noteItem.Guid %}
{% endif %}
Supported Formatting
Not all formatting options are supported natively in the app, but here's what can be used safely:
When highlighting text, the following formatting is supported:
Notes
When using note blocks in structured content, they will only display if a user is logged in. We recommend putting a content block above this one that only displays if a user is not logged in, and prompts them to log in or at least lets them know that the notes are missing until they do so.
Styling
There’s no styling X-Ray available.