Copied to clipboard

Flag this post as spam?

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


  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Aug 27, 2013 @ 22:58
    Ali Sheikh Taheri
    0

    problem with media picker since upgrade from 4.0.1 to 4.11.10.

    I've upgraded the version of Umbraco for one of our websites which is using the media picker with preview (MPWP) data type (link).

    Apparently above package is not compatible with latest version of Umbraco; I also know this package is part of the core now. (Media Picker)

    The problem is, if I use the MPWP it does not work and if I convert that to build-in Media Picker then all the pages with a property of MPWP data type will lose its value.

    Any work around?

    Thanks

    Ali

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 28, 2013 @ 10:59
    Jeroen Breuer
    1

    This blog explains how you can go from 1 media picker to another. You could also use it to switch to DAMP.

    http://www.proworks.com/blog/2011/03/29/fix-'yet-another-media-picker-4'-for-upgrade-from-umbraco-40x-to-452/

    Jeroen

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Aug 28, 2013 @ 19:09
    Ali Sheikh Taheri
    100

    Hi Jeroen,

    thank you for your help, I've fixed it as below:

    1. first changed the datatype that was using the MPWP to Core Media Picker
    2. then ran the below script to update the data for every property that is using MPWP (id of 1046) from dataNtext to dataInt

      update cmsPropertyData 
      set dataInt = CAST(convert(varchar(20),datantext)as int)
      where id in (select id 
      from cmsPropertyData
      where propertytypeid in (
      select id
      from dbo.cmsPropertyType
      where dataTypeId = 1046))
      
Please Sign in or register to post replies

Write your reply to:

Draft