Matrix Version: 5.3.4.0
Hi everyone,
I’ve got an asset listing that displays varous metadata fields (title, author, year of publication) for some PDF files I have on Squiz. I’d like to filter this list based on a given year.
So far, I’ve managed to filter the list by hard-coding in a year.
%begin_asset_metadata_year^eq:2016%
<li>%asset_metadata_title</li>
%end_asset%
This works well, but I’d like to handle this dynamically. I’ve tried using the following line:
%begin_asset_metadata_year^eq:{globals_get_year}%
but the asset listings page doesn’t display anything.
Is there some kind of precedence in evaluation that causes the conditional to evaluate to false? Or is there another way to achieve what I’m after?
In case it’s important, the global year value is valid. It displays when I add %globals_get_year% into the page.
Thank you.