I am sure there is a more efficient way, but here is what I have done and it is working.
[[!getPage:ifnotempty=`[[$partnersBtn]]`?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`574`
&limit=`1`
&pageVarKey=`page`
&includeTVs=`1`
&includeContent=`1`
&showHidden=`1`
&sortby=`{"publishedon":"DESC"}`
&tpl=`mis_partner-grid-item-tpl`
&tvFilters=`country==[[*Country]]`
]]
What this is doing is looking for resources in a TV category of Country (Mexico, Guatemala, etc.) If there are no resources, it will show my partnersBtn snippet.
I have 2 buttons and 2 headings that need to do this. Is this going to slow my page down with the getResources call?
I am open to suggestions.
Thanks!