Hi everyone,
I seem to be having some issues with Matrix 5.3... it seems my conditions aren't working, and I'm wondering if it's a simple case of not formatting this correctly...
I have a metadata field, asset_metadata_MAINTENANCE.BannerType which can have one of three possible values: uk-alert, uk-alert-warning, or uk-alert-danger...
I've been using what knowledge I've gained from https://matrix-manuals.squiz.net/keyword-replacements/chapters/conditional-keywords to develop the following conditions, to display specific code... I'm intentionally separating the three possibilities in case the final copy for the content needs to be changed...
However, I'm getting all three results rendering out as though the condition is being met in all three cases, which is impossible... I'm not sure what could be causing the conditions to render out as in the attached image... I'd love to know what I can do to resolve this... Could anyone please look at this and tell me how my code could be improved so that it only displays the one condition based on the value of the metadata field?
Regards,
Eliseo
%begin_asset_metadata_MAINTENANCE.BannerType^eq:uk-alert:1:% on %instance_start_datetime^date_format:l j F Y%. <b>Find out how this scheduled outage will impact your site</b><br /> %end_asset% %begin_asset_metadata_MAINTENANCE.BannerType^eq:uk-alert-warning:1:% on %instance_start_datetime^date_format:l j F Y%. <b>Find out how this scheduled outage will impact your site</b><br /> %end_asset% %begin_asset_metadata_MAINTENANCE.BannerType^eq:uk-alert-danger:1:% between %instance_start_datetime^date_format:g%:%instance_start_datetime^date_format:i%%instance_start_datetime^date_format:a% and %instance_end_datetime^date_format:g%:%instance_end_datetime^date_format:i%%instance_end_datetime^date_format:a%. <b>Find out how this scheduled outage affects you</b><br /> %end_asset%
[attachment=818:theImage.png] theImage.png (37.7 KB)