Good for when you just want to change a user's profile image without changing the markup/code.
You just use the image's description for filtering.
{{
var photoList = map.select(page.files, "string.contains($.value.description, 'photo')");
if (#photoList > 0) {
var photoFile = map.values(photoList)[0];
web.image(photoFile.uri, 187, 187, photoFile.description);
}
else {
web.html("no photo");
}
}}
If you want to change the image to another(better) one. Just attach it and change it's description to "profile photo". You also need to remove the same description to the previous image.
![]()