Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lee 1130 posts 3088 karma points
    Jul 22, 2009 @ 13:36
    Lee
    0

    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?

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Jul 22, 2009 @ 13:52
    Peter Dijksterhuis
    1

    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

  • Lee 1130 posts 3088 karma points
    Jul 22, 2009 @ 13:55
    Lee
    0

    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?

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jul 22, 2009 @ 13:56
    Thomas Höhler
    1

    No it would be

    <xsl:value-of select="data [@alias = 'AltTag']" />

    hth, Thomas

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jul 22, 2009 @ 13:58
    Thomas Höhler
    1

    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

  • Lee 1130 posts 3088 karma points
    Jul 22, 2009 @ 14:32
    Lee
    0

    Legend thanks :)

Please Sign in or register to post replies

Write your reply to:

Draft