If I understand correctly, the notable members page is basically a template with widgets, right?
Is there a code behind the scenes somewhere that passes the variables it needs to it or are they available globally? i.e. to replicate something similar to this would it require a new addon or just a new template?
What I mean is say for this
Are variables like $resultsData and $data.value available to all templates or would this code only work in this specific template?
Hope that question makes sense!
Is there a code behind the scenes somewhere that passes the variables it needs to it or are they available globally? i.e. to replicate something similar to this would it require a new addon or just a new template?
What I mean is say for this
Code:
<xf:foreach loop="{$resultsData.{$active.member_stat_key}}" key="$userId" value="$data">
<li class="block-row block-row--separated">
<xf:macro template="member_list_macros" name="item"
arg-user="{$data.user}"
arg-extraData="{$data.value}"
arg-extraDataBig="{{ true }}" />
</li>
<xf:else />
Are variables like $resultsData and $data.value available to all templates or would this code only work in this specific template?
Hope that question makes sense!