0 votes
in Rock by TinaStephens (8.6k points)
edited

Favorite Data View on SBC Rock only works if you add a new favorite data view. Then it will show your other favorite ones.

Data View page: https://rock.scottsdalebible.com/page/145?DataViewId=54&ExpandedIds=C758

Set Favorite cms page: https://rock.scottsdalebible.com/admin/cms/pages?Page=1715

Asana: https://app.asana.com/0/1202285749308316/1203696648917115/f

1 Answer

0 votes
by KateQuinn (6.8k points)
edited
 
Best answer

This one is funky :)

On the data view details page, the HTML content that contains the favorites links had a small error in the links it was building. Instead of 'page/{{ Page.Id }}?', I changed it to 'reporting/dataviews?', which is the correct page route to the page with the blocks to view the data views.

<h4><span class="label label-default"><i class="fa fa-star"></i> My favorite Dataviews:</span></h4>
{% assign favs = CurrentPerson | GetUserPreference:'MyFavoriteDVs' | Split:'|' %}
{% for fav in favs %}
    {% assign valid = fav | Size %}
    {% if valid > 0 %}
        {% dataview where:'Id == "{{ fav }}"' %}
            <a href="/reporting/dataviews?DataViewId={{ dataview.Id }}&ExpandedIds=C{{ dataview.Category.Id }}">{{ dataview.Name }}</a><br />
        {% enddataview %}
    {% endif %}
{% endfor %}
<br />
Welcome! Here you can ask questions and receive answers (hopefully) from other members of our team.
...