Copied to clipboard

Flag this post as spam?

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


  • Lee Zoumas 8 posts 90 karma points
    Nov 04, 2015 @ 22:12
     Lee Zoumas
    0

    Adding captions to images in the native Media module

    Hello,

    I have created a partial view macro to pull in a folder of images that are stored in a Media folder. Everything is working well, but the requirements for this implementation, which is a rotating carousel need one, possibly two things. At the very least, they need some descriptive text about the image and possibly a url, so when the user clicks the image they are taken to whatever the value of this field is.

    Has anybody else ever had this requirement and if so, how did they achieve it?

    Thanks,

    Lee

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Nov 05, 2015 @ 08:00
    Dave Woestenborghs
    101

    What we did for a project is just at some extra fields to the Image mediatype.

    Go to the settings section and then to media types. Select the Image media type and add the properties needed. Just like you would for a Document type.

    After that you can retreive the values of these properties just like you would for content pages.

    Dave

  • Lee Zoumas 8 posts 90 karma points
    Nov 05, 2015 @ 16:05
     Lee Zoumas
    0

    Thank you very much, that did the trick!

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Nov 05, 2015 @ 16:11
    Dave Woestenborghs
    0

    Glad to help you out. Don't forget to mark the answer as solution so others can easily find this as well.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft