I am attempting to use a custom pagemediaselect field I created in my page template.
The only problem is that the variable to output the field "{{p.header.lead_image}}" only outputs the file name of the media I select using the mediaselect field (ex: filename.jpg).
I thought maybe I could input THAT variable into this code to create the entire URL ( {{p.media['{{p.header.lead_image}}']}}, but that's not working (I'm guessing you can't use two variables together).
Could anyone point me in the right direction on how to remedy this?
Thanks!