Rank: Newbie
Joined: 7/17/2008 Posts: 6 Location: Glasgow
|
Hi,
I'm looking for help on how I go about setting alt text for images uploaded into Umbraco. When uploading via the Media section there is no option to set alt text.
I'm writing a basic user control to render an image based of the node id of a media picker set by the user. I would also like to pick up alt text but there doesn't seem to be an obvious way to set this. I would have thought the logical place to specify alt text would be when the user uploads the image in the first place but this doesn't seem to be the case.
I'm thinking of adding a new page field for the image alt text and setting it that way, not ideal but it would work well enough in this case as there is only one image being selected by the user.
Any other suggestions?
Cheers, Robert
|
 Rank: Addict
Joined: 7/19/2006 Posts: 815 Location: Århus, Denmark
|
Like document types, there are also media types. So you could add a text field to your "image" media type in the settings section, and extract that with your user control.
|
Rank: Newbie
Joined: 7/17/2008 Posts: 6 Location: Glasgow
|
Perfect, thanks! So much to learn!
Cheers, Robert
|