sachatrauwaen / OpenContent

Structured Content editing for DNN (Dotnetnuke)
46 stars 25 forks source link

Full Export Imagex Path issue #107

Closed Timo-Breumelhof closed 4 years ago

Timo-Breumelhof commented 4 years ago

I tried the full import / export using a template with the ImageX field. I have a crop-folder set and that does not seem to be working correctly.

On the original module the data is:


 "Image": {
      "crop": {
        "x": 0,
        "y": 0,
        "width": 5184,
        "height": 3456,
        "rotate": 0,
        "scaleX": 1,
        "scaleY": 1
      },
      "url": "/Portals/0/OpenContent/Files/01-ImageTitleLink/Full/fog-foggy-forest-210027.jpg",
      "id": "2239",
      "filename": "fog-foggy-forest-210027.jpg",
      "width": 5184,
      "height": 3456,
      "cropUrl": "/Portals/0/OpenContent/Files/01-ImageTitleLink/Cropped/fog-foggy-forest-210027-crop.jpg"
    }

After a Full Export > Full Import this is the result

"Image": {
      "crop": {
        "x": 0,
        "y": 0,
        "width": 5184,
        "height": 3456,
        "rotate": 0,
        "scaleX": 1,
        "scaleY": 1
      },
      "url": "/Portals/0/OpenContent/Files/01-ImageTitleLink/Full/fog-foggy-forest-210027.jpg",
      "id": "2239",
      "filename": "fog-foggy-forest-210027.jpg",
      "width": 5184,
      "height": 3456,
      "cropUrl": "/0/Mentorr/OpenContent/Files/01-ImageTitleLink/Full/fog-foggy-forest-210027-crop.jpg"
    }

The cropUrl path is incorrect.

sachatrauwaen commented 4 years ago

fixed in v 4.4