I'm trying to figure out how to work with alt text for images inserted into the RichText editor. Right now when I add an image I select it from the media library and everything for the most part works great, however the alt text and title text are set to the name of the image. For certain images the alt text needs to be quite detailed, far longer than you want in a name. An even bigger issue are images that shouldn't have alt text (decorative ones) as having a blank name in the media library is obviously not an option.
Is there something I'm missing here? Some way to make this work? I'm happy to have users either enter the alt text in the media library, or make them enter it every time an image is inserted.
My current plan, if there's no way to do this, is to disable the image tool and use a macro where I can either pull it from a custom property in the media library or require it as a parameter. I'd really prefer to not have to do this as I lose out on all the image functionality in the image tool.
You could certainly insert a macro to pick an item from the media library that renders the image in a special way. We have done that to help add classes and extra markup to a standard image.
In addition, you could add an ALT property to the image media type in the Settings section and use that value in the markup of your new macro.
Alt Text in RichText Editor
Hi all,
I'm trying to figure out how to work with alt text for images inserted into the RichText editor. Right now when I add an image I select it from the media library and everything for the most part works great, however the alt text and title text are set to the name of the image. For certain images the alt text needs to be quite detailed, far longer than you want in a name. An even bigger issue are images that shouldn't have alt text (decorative ones) as having a blank name in the media library is obviously not an option.
Is there something I'm missing here? Some way to make this work? I'm happy to have users either enter the alt text in the media library, or make them enter it every time an image is inserted.
My current plan, if there's no way to do this, is to disable the image tool and use a macro where I can either pull it from a custom property in the media library or require it as a parameter. I'd really prefer to not have to do this as I lose out on all the image functionality in the image tool.
I'm running Umbraco 4.0.3.
Thanks in advance
You could certainly insert a macro to pick an item from the media library that renders the image in a special way. We have done that to help add classes and extra markup to a standard image.
In addition, you could add an ALT property to the image media type in the Settings section and use that value in the markup of your new macro.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.