Setting image alt text in the Umbraco editor Options
RobertDougan
Posted: Monday, October 13, 2008 11:03:36 PM
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
mortenbock
Posted: Tuesday, October 14, 2008 12:20:58 AM

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.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

RobertDougan
Posted: Tuesday, October 14, 2008 9:15:10 PM
Rank: Newbie

Joined: 7/17/2008
Posts: 6
Location: Glasgow
Perfect, thanks! So much to learn!

Cheers,
Robert
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.