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?
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.
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
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
Thank you very much, that did the trick!
Glad to help you out. Don't forget to mark the answer as solution so others can easily find this as well.
Dave
is working on a reply...