I am wondering if this is possible and how it is done, my logic might be wrong.
Let's say for example, I have a custom content block in my template written as below:
Code: Select all
{content block="archivedYearValue" assign="archivedYearValue" label="Archived Year Value (YYYY)" oneline="1" wysiwyg="0"}
Code: Select all
{news summarytemplate="NewsArchivesSummary"}
Code: Select all
<h1>HEADER</h1>
{foreach from=$items item=entry}
{assign var="post_year_set_by_user" value=$entry->$archivedYearValue}
{if $post_year == post_year_set_by_user}
<div class="NewsSummaryLink">
{$entry->titlelink}
</div>
{/if}
{/foreach}
Thanks,
JC