Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

Ideas for the umbraco:image control

$
0
0

Hi all

As some of you may have seen, umbraco 4.11 ships with a new control, the umbraco:image control. Read more about it here: http://24days.in/umbraco/2012/introducing-the-umbraco-image-control/

I wanted to try and gather some feedback on ideas for extending it, to make it even more useful.

Things that have been mentioned are for example a way to use the alt attribute. Others have mentioned the width/height attributes. So in general, I am thinking that it might be interresting to do something generic for attributes?

The first thing that I've thought, is doing something like this:

<umbraco:image field="myImage" alt="[#title]" width="[#width]" data-id="[#id]" runat="server"/>

This would the understand that attributes that have the [#] syntax are to be retrieved from the properties of the media item that is being rendered.

Would that be a nice way to do it? If the attribute does not contain [#], then it will just be written raw to the output.

Any other ideas/suggestions that you would find useful when using the control?


Viewing all articles
Browse latest Browse all 72689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>