I have added a few images, but really would like to add custom alt="" tags to the images so I can then pull out the alt tag field in my XSLT and use it in my JQuery image slider I'm creating.. How would I go about doing something like this?
you can add custom properties to media-items. Goto your settings-section and click 'Mediatypes'. There its similar to documenttypes, you can add new properties in the 'Generic properties'-tab. Just add a property called alttag or something.
After that, when uploading a new item, you should be able to fill that in as well. Getting the property is similar to the umbracoFile or umbracoWidth.
btw: the umbracoWidth etc. are build in datatype properties. You can edit them btw, but then the umbraco Width etc aren't filled automatically at uploading a file...
Adding Alt Tags To Images In Media Section?
I have added a few images, but really would like to add custom alt="" tags to the images so I can then pull out the alt tag field in my XSLT and use it in my JQuery image slider I'm creating.. How would I go about doing something like this?
Hi,
you can add custom properties to media-items. Goto your settings-section and click 'Mediatypes'. There its similar to documenttypes, you can add new properties in the 'Generic properties'-tab. Just add a property called alttag or something.
After that, when uploading a new item, you should be able to fill that in as well. Getting the property is similar to the umbracoFile or umbracoWidth.
HTH,
PeterD
Hi Peter
Thanks for coming back to me :)
So if I call this propertie 'AltTag' I would get the value of the property in my XSLT by using umbracoAltTag?
No it would be
hth, Thomas
btw: the umbracoWidth etc. are build in datatype properties. You can edit them btw, but then the umbraco Width etc aren't filled automatically at uploading a file...
Thomas
Legend thanks :)
is working on a reply...