Hi,
I'm trying to ensure that the email address on the alternate context of the site uses a language specific email alias (@caerdydd. in place of @cardiff.) The code below is from the alternate context side of the paint layout.
I'm using %begin_asset_metadata_profile.email% to check if the field has been completed then lowercasing the value before replacing the domain in the email address.
%begin_asset_metadata_profile.email% <dt><i class="icon-email" title="Ebost"><span class="hidden-text">Ebost:</span></i></dt> <dd><a href="mailto:%asset_metadata_profile.email^lowercase^replace:cardiff:caerdydd%">%asset_metadata_profile.email^lowercase^replace:cardiff:caerdydd%</a></dd> %end_asset_metadata_profile.email%
The code above appears to work correctly but fails to close the profile.email check as the remainder of the paint layout fails to output meta data from this point onwards in the code.
Does anyone have any advice?
Thanks.