Copied to clipboard

Flag this post as spam?

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


  • Jeremy 17 posts 37 karma points
    Aug 19, 2013 @ 23:44
    Jeremy
    0

    Using a custom property for MediaName in the selected media items list

    I want to use a custom property called displayName for the name that is displayed in the list of selected media items, instead of the nodeName. Is there a way to change this?

    Jeremy

  • Nora 28 posts 97 karma points
    Sep 10, 2013 @ 16:29
    Nora
    0

    I have the same issue. I want to add additional custom properties on the media type and output them in the foreach-loop. Did you find a solution?

    Thanks a lot.

    Nora

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 10, 2013 @ 18:18
    Jeroen Breuer
    0

    Hello,

    This is currently not possible, but you could modify the DAMP source to support this.

    Jeroen

  • Nora 28 posts 97 karma points
    Sep 10, 2013 @ 18:33
    Nora
    0

    Hello again,

    I've found a solution:

    @if(Model.dampPropertyAlias.Count > 0){
    <ul>
                           foreach (dynamic d in Model.dampPropertyAlias){
                                <li>
                                    <img src="@d.Url" alt="@d.Alt">
                                    <div class="newImageProperty">
                                        @if(d.DynamicMedia.HasProperty("ImagePropertyAlias")) {
                                            <p>@d.DynamicMedia.GetPropertyValue("ImagePropertyAlias", false)</p>
                                        }
                                       
                                    </div>
                                </li>
                            }
    </ul>        
                         }


     

    Hope this helps.

    Kind regards,

    Nora

Please Sign in or register to post replies

Write your reply to:

Draft