How to use [Coda User].[Photo] as an Image type column

There are certain features in Coda that require an image type column. For example:

Each doc loads with at least one image - the logged in user’s profile picture, accessible at:
[Coda User].[Photo]

How can we get that image into an image column so that its usable for these features (like Card view cover image). I’ve tried formulas and a button modify the Image type column with [Coda User].[Photo] but nothing is working. It would be great to be able to put this image to work immediately. Thanks!

Hi Johg. I don’t have a solution for this problem, but if you are thinking to use a profile pic as image icon in the expanded row view, maybe this layout can help:

Short answer: don’t use an Image column, but an Image URL column type. Then your formula to get
User.Photo will work just fine, and you’ll get the image displayed in cards, popup layouts etc:

Column types Image and File are for uploads only. It seems like you just cannot get anything into them with formulas — only through a file upload.

2 Likes

@Paul_Danyliuk this is a great answer. thank you.

I am also wondering how to address a situation where there is no user photo. In that case I want to have a ‘backup’ image we use for the person, like a twitter egg, etc.

I have a user table where I can run codaUser.photo.isblank() and I’m getting a mix of true and false, but it doesn’t seem indexed to whether there is actually a photo in their profile.

Has anyone addressed this? Where we can use their Coda User photo if it exists, and if not sub another photo? This makes the doc more beautiful for all users. Thanks!