Anthony, this should certainly be possible. The approach I use is to place a helper method in the code-behind of the template. This requires mapping an external widget template
, but gives you more control over the rendering of the content properties.
What I usually do is do define a method like this:
var item = contentItem
This allows me to pass the entire content item from the template:
src="<%# RenderImage(Container.DataItem) %>" />
In the method above, MyContentItem can be your custom object, or one of the built-in content items like News, or BlogPost, etc.
Adding a breakpoint in that method allows you to inspect all the properties to extract the value you might need, construct a string response, and return it to the template.
For an example of using a helper method to retrieve an image, take a look at this article: Retrieving Data From Dynamic Modules Using the Module Builder API
Hope this is helpful!