Analyzing your code and umbraco 6.0.2 source code, I figured out what the problem is:
In umbraco source in editMedia.aspx.cs this snippet is used to save the media:
//The value of the properties has been set on IData through IDataEditor in the ContentControl //so we need to 'retrieve' that value and set it on the property of the new IContent object. //NOTE This is a workaround for the legacy approach to saving values through the DataType instead of the Property //- (The DataType shouldn't be responsible for saving the value - especically directly to the db). foreach (var item in tmp.DataTypes) { _media.getProperty(item.Key).Value = item.Value.Data.Value; }
In DAMP editDAMP.aspx.cs this workaround is not implemented so the media doesn't save its properties.
I tried to add this foreach in DAMP but DataTypes is an internal property of the class ContentControl. Perhaps DAMP should use the new set of classes and services provided by umbraco 6.
Not upload image
When I create a new image i'm not able to upload the image. There are no errors, but no image was created...
Umbraco v6.0.2
What version of DAMP are you using? Only DAMP 2.5 works on v6.
Jeroen
I'm using DAMP 2.5... All works fine, but when i upload something i'll receive no error, but the image is not uploaded...
Hmm I also had that error with DAMP 2.0, but it should be fixed in 2.5. I'll have a look at it soon.
Jeroen
I'm debugging the project. In umbraco 6 the _media.genericProperties.Value is empty. But in umbraco 4.11 this is filled.
Thanks for debugging the code. Maybe these issues can give you more information:
http://issues.umbraco.org/issue/U4-1371
http://issues.umbraco.org/issue/U4-1368
Jeroen
I noticed that the plugin doesn't work properly with Umbraco 6.0.2 : the "Edit media item" dialog doesn't save any property.
You can only create the media item, but you can't edit it in the dialog.
I'm aware that the edit dialog has some problems: http://our.umbraco.org/projects/backoffice-extensions/digibiz-advanced-media-picker/digibiz-advanced-media-picker/38209-Editing-crops-from-content-node-pressing-save-button-does-not-save
Jeroen
Analyzing your code and umbraco 6.0.2 source code, I figured out what the problem is:
In umbraco source in editMedia.aspx.cs this snippet is used to save the media:
//The value of the properties has been set on IData through IDataEditor in the ContentControl
//so we need to 'retrieve' that value and set it on the property of the new IContent object.
//NOTE This is a workaround for the legacy approach to saving values through the DataType instead of the Property
//- (The DataType shouldn't be responsible for saving the value - especically directly to the db).
foreach (var item in tmp.DataTypes)
{
_media.getProperty(item.Key).Value = item.Value.Data.Value;
}
In DAMP editDAMP.aspx.cs this workaround is not implemented so the media doesn't save its properties.
I tried to add this foreach in DAMP but DataTypes is an internal property of the class ContentControl. Perhaps DAMP should use the new set of classes and services provided by umbraco 6.
I added an issue for it so hopefully it can become public: http://issues.umbraco.org/issue/U4-1910
Jeroen
The editMedia issue should be fixed in the latest change set: http://damp.codeplex.com/SourceControl/list/changesets
Uploading works in v 6.0.2 so I can't recreate that issue.
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.