Thanks @Jaycee_Lewis. Still having issues when I’m combining multiple modules and hitting crm_associations call limit with this so if anyone is able to give insight that would be awesome!
Here’s the latest code. Would love to just do one call for the whole “Scholarships” section and then just filter by “type_of_publication” to show the different results for each subheading.
Appreciate any feedback.
<details>
<summary>
<h5>Scholarship</h5>
<div class="chevron-icon"></div>
</summary>
<div class="content-wrapper">
{% if dynamic_page_crm_object %}
{% set associated_objects = crm_associations(dynamic_page_crm_object.id, "USER_DEFINED", 211, "research_or_scholarship_publication_=Scholarship Publication&type_of_publication=Book&visible_publication=true&orderBy=-year_published", "publication_title, year_published, books_book_chapters_music__publisher_name_and_place, name_of_author_s_, book_chapter__book_name, book_chapters_journals__page_numbers, conference_creative_performance__name_of, conference_creative_performance__location, publication_external_link, journal__name, journal__volume_and_issue") %}
<h6>Books</h6>
{% for ac_profiles in associated_objects.results %}
{{ac_profiles.name_of_author_s_}} ({{ac_profiles.year_published}}). <em>{{ ac_profiles.publication_title }}</em>. {{ac_profiles.books_book_chapters_music__publisher_name_and_place}}<br>
{% endfor %}
<br>
{% set associated_objects = crm_associations(dynamic_page_crm_object.id, "USER_DEFINED", 211, "research_or_scholarship_publication_=Scholarship Publication&type_of_publication=Book chapter&visible_publication=true&orderBy=-year_published", "publication_title, year_published, books_book_chapters_music__publisher_name_and_place, name_of_author_s_, book_chapter__book_name, book_chapters_journals__page_numbers, conference_creative_performance__name_of, conference_creative_performance__location, publication_external_link, journal__name, journal__volume_and_issue") %}
<h6>Book Chapters</h6>
{% for ac_profiles in associated_objects.results %}
{{ac_profiles.name_of_author_s_}} ({{ac_profiles.year_published}}). <em>{{ ac_profiles.publication_title }}</em> in {{ ac_profiles.book_chapter__book_name}} (pp.{{ac_profiles.book_chapters_journals__page_numbers}}). {{ac_profiles.books_book_chapters_music__publisher_name_and_place}}<br>
{% endfor %}
<br>
{% set associated_objects = crm_associations(dynamic_page_crm_object.id, "USER_DEFINED", 211, "research_or_scholarship_publication_=Scholarship Publication&type_of_publication=Book Review&visible_publication=true&orderBy=-year_published", "publication_title, year_published, books_book_chapters_music__publisher_name_and_place, name_of_author_s_, book_chapter__book_name, book_chapters_journals__page_numbers, conference_creative_performance__name_of, conference_creative_performance__location, publication_external_link, journal__name, journal__volume_and_issue") %}
<h6>Book Reviews</h6>
{% for ac_profiles in associated_objects.results %}
{{ac_profiles.name_of_author_s_}} ({{ac_profiles.year_published}}). <em>{{ ac_profiles.publication_title }}</em>. {{ac_profiles.books_book_chapters_music__publisher_name_and_place}}<br>
{% endfor %}
<br>
{% set associated_objects = crm_associations(dynamic_page_crm_object.id, "USER_DEFINED", 211, "research_or_scholarship_publication_=Scholarship Publication&type_of_publication=Creative Production or Composition&visible_publication=true&orderBy=-year_published", "publication_title, year_published, books_book_chapters_music__publisher_name_and_place, name_of_author_s_, book_chapter__book_name, book_chapters_journals__page_numbers, conference_creative_performance__name_of, conference_creative_performance__location, publication_external_link, journal__name, journal__volume_and_issue") %}
<h6>Creative Productions or Compositions</h6>
{% for ac_profiles in associated_objects.results %}
{{ac_profiles.name_of_author_s_}} ({{ac_profiles.year_published}}). <em>{{ ac_profiles.publication_title }}</em>. {{ac_profiles.books_book_chapters_music__publisher_name_and_place}} {{ac_profiles.conference_creative_performance__location}}<br>
{% endfor %}
<br>
{% set associated_objects = crm_associations(dynamic_page_crm_object.id, "USER_DEFINED", 211, "research_or_scholarship_publication_=Scholarship Publication&type_of_publication=Edited Collection of Essays&visible_publication=true&orderBy=-year_published", "publication_title, year_published, books_book_chapters_music__publisher_name_and_place, name_of_author_s_, book_chapter__book_name, book_chapters_journals__page_numbers, conference_creative_performance__name_of, conference_creative_performance__location, publication_external_link, journal__name, journal__volume_and_issue") %}
<h6>Edited Collections of Essays</h6>
{% for ac_profiles in associated_objects.results %}
{{ac_profiles.name_of_author_s_}} ({{ac_profiles.year_published}}). <em>{{ ac_profiles.publication_title }}</em>. {{ac_profiles.books_book_chapters_music__publisher_name_and_place}}<br>
{% endfor %}
<br>
{% set associated_objects = crm_associations(dynamic_page_crm_object.id, "USER_DEFINED", 211, "research_or_scholarship_publication_=Scholarship Publication&type_of_publication=Journal article&visible_publication=true&orderBy=-year_published", "publication_title, year_published, books_book_chapters_music__publisher_name_and_place, name_of_author_s_, book_chapter__book_name, book_chapters_journals__page_numbers, conference_creative_performance__name_of, conference_creative_performance__location, publication_external_link, journal__name, journal__volume_and_issue") %}
<h6>Journal Articles</h6>
{% for ac_profiles in associated_objects.results %}
{{ac_profiles.name_of_author_s_}} ({{ac_profiles.year_published}}). {{ ac_profiles.publication_title }}. <em>{{ac_profiles.journal__name}}</em>, {{ac_profiles.journal__volume_and_issue}}, {{ac_profiles.book_chapters_journals__page_numbers}} | <a href="{{ac_profiles.publication_external_link}}">External Link</a><br>
{% endfor %}
<br>
{% set associated_objects = crm_associations(dynamic_page_crm_object.id, "USER_DEFINED", 211, "research_or_scholarship_publication_=Scholarship Publication&type_of_publication=Popular article&visible_publication=true&orderBy=-year_published", "publication_title, year_published, books_book_chapters_music__publisher_name_and_place, name_of_author_s_, book_chapter__book_name, book_chapters_journals__page_numbers, conference_creative_performance__name_of, conference_creative_performance__location, publication_external_link, journal__name, journal__volume_and_issue") %}
<h6>Popular Articles</h6>
{% for ac_profiles in associated_objects.results %}
{{ac_profiles.name_of_author_s_}} ({{ac_profiles.year_published}}). {{ ac_profiles.publication_title }}. <em>{{ac_profiles.journal__name}}</em> | <a href="{{ac_profiles.publication_external_link}}">External Link</a><br>
{% endfor %}
<br>
{% set associated_objects = crm_associations(dynamic_page_crm_object.id, "USER_DEFINED", 211, "research_or_scholarship_publication_=Scholarship Publication&type_of_publication=Other publications&visible_publication=true&orderBy=-year_published", "publication_title, year_published, books_book_chapters_music__publisher_name_and_place, name_of_author_s_, book_chapter__book_name, book_chapters_journals__page_numbers, conference_creative_performance__name_of, conference_creative_performance__location, publication_external_link, journal__name, journal__volume_and_issue") %}
<h6>Other Publications</h6>
{% for ac_profiles in associated_objects.results %}
{{ac_profiles.name_of_author_s_}} ({{ac_profiles.year_published}}). <em>{{ ac_profiles.publication_title }}</em>. {{ac_profiles.books_book_chapters_music__publisher_name_and_place}} | <a href="{{ac_profiles.publication_external_link}}">External Link</a><br>
{% endfor %}
{% endif %}
</div>
</details>