Copied to clipboard

Flag this post as spam?

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


  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 02, 2012 @ 15:45
    Jesper Ordrup
    0

    DAMP and publicmedieaTree incompatible?

    Hi,

    I've tried using your package with DAMP new media picker. It doesnt find your public folder? Any thoughs?

    best

    Jesper

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 02, 2012 @ 15:49
    Jeroen Breuer
    0

    This probably doesn't work. DAMP uses the same tree which is used in MNTP (I copied some parts of it) and I once tested that with a custom content tree (the one from Favorite Content) and that didn't work either. However I did found a small workaround. Have a look at this issue: http://ucomponents.codeplex.com/workitem/13348

    Jeroen

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 02, 2012 @ 16:03
    Jesper Ordrup
    0

    Hi Jeroen,

    Thanks for your quick response(s) .. I'm thinking - you mention that you've tried the workaround and it worked? I'm not completly sure how to achieve the same - is it:

    * grab damp source
    * grab publicmedieatree binaries
    * let damp inherit from publicmediatree custom app tree

    Have you done it already?

    best

    jesper

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 02, 2012 @ 16:06
    Jeroen Breuer
    0

    Hi Jesper,

    That's exactly what I did, but than for MNTP with Favorite Content and it worked :). Been a while since I did it, but that should to the trick.

    Jeroen

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 02, 2012 @ 16:14
    Jesper Ordrup
    0

    Thanks Jeroen. I'll just see if I can get my head around that. You might consider having a official DAMP version for Publicmediatree :-)

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 02, 2012 @ 16:25
    Jesper Ordrup
    0

    Shoot .. Client is running Umbraco 4.7.0 and DAMP 1.0

    I found source for v1 release but is it worth trying?

    best
    Jesper 

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 02, 2012 @ 16:34
    Jeroen Breuer
    0

    Should also work for DAMP 1.0, but DAMP 2.0 also works on 4.7.0 :). Upgrading might be better because DAMP 2.0 is a lot more user friendly. You can just install DAMP 2.0 and everything should work.

    Jeroen

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 02, 2012 @ 16:55
    Jesper Ordrup
    0

    Hi Jeroen,

    I did it all but doesnt work. Dont know if I'm close or not.

    Opened DAMP source added references to the missing umbraco dlls
    Updated to Framework 4
    Updated 1 line :    

    public class DigibizMediaTree : TheseDays.Umbraco.Media.PublicMediaTree.PublicMediaTree 

    Compiled with success

    Copied only the two dlls DigibizAdvancedMediaPicker.dll and  DigibizTree.dll

    Restarted Webapp

    Logged in with a user restricted to part of media tree

    DAMP media picker doesnt show Public in the dialog?

    Best
    Jesper 

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 02, 2012 @ 17:14
    Jeroen Breuer
    0

    Hmm that's strange. That's exactly what you're supposed to do. At least that's what I did to get MNTP working with Favorite Content. Maybe we need to ask the developer of PublicMediaTree if we need to do something extra.

    Jeroen

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 02, 2012 @ 17:28
    Jesper Ordrup
    0

    Thanks Jeroen. I just twittet Lennart.

  • Lennart Stoop 304 posts 842 karma points
    Feb 02, 2012 @ 19:20
    Lennart Stoop
    0

    Not really something I can think of. The project we initially created the package for uses MNTP, and it works with the custom tree just out of the box (MNTP does show the public folder). Although the project was upgraded to 4.7.1 (originally 4.5.2) it still uses uComponents v1.0, so perhaps something has changed in the next version of uComponents. I will setup the packages on a clean install and look for a solution, keep u posted.

    Grtz

    L

  • Lennart Stoop 304 posts 842 karma points
    Feb 02, 2012 @ 20:07
    Lennart Stoop
    0

    Was able to repro with 4.7.1.1 & uComponents v3.

    The weird thing is that I can also repro with 4.5.2 & uComponents v1.. which I thought would work considering its works fine on our website.

    I'm pretty sure the code is packaged up correctly, so I'm guessing something may be different in the tree config in the db. Comparing those right now.

  • Lennart Stoop 304 posts 842 karma points
    Feb 02, 2012 @ 21:22
    Lennart Stoop
    0

    It totally slipped my mind but turns out we also had to make changes to MNTP (and recompile) to make it work with our custom tree.

    What we did is update the data editor so it would not use its internal "FilteredMediaTree":

    http://ucomponents.codeplex.com/SourceControl/changeset/view/c1cf9775e220#uComponents.Core%2fDataTypes%2fMultiNodeTreePicker%2fMNTP_DataEditor.cs

    Where were updated the tree type to render:

    TreePickerControl.TreeType = "Media"; // Originally: "FilteredMediaTree"

    Pretty hacky though, but I have no idea how else to make the pickers compatible with custom trees.

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 02, 2012 @ 22:09
    Jeroen Breuer
    0

    Jesper maybe you can try that too. In DAMP the data editor uses the DigibizMediaTree: http://damp.codeplex.com/SourceControl/changeset/view/81602#1765758. Maybe if you change that it will work.

    protected override void OnLoad(EventArgs e)
    {
          base.OnLoad(e);
    
          //Add the js/css required.
          this.AddAllDAMPClientDependencies();
    
          TreePickerControl.TreeType = "DigibizMediaTree";
          TreePickerControl.App = "media";
    }

    Jeroen

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 03, 2012 @ 07:54
    Jesper Ordrup
    0

    Thanks guys!

    This seems to work. Will do a bit more testing but as of now the DAMP media picker works with the Public Media Tree. Niiiice. One happy day. 
    Jeroen - are you interested in publishing an unofficial "DAMP for PublicMediaTree" compatible with Umbraco 4.7.0 Framework 4? 

    /Jesper

  • Lennart Stoop 304 posts 842 karma points
    Feb 03, 2012 @ 08:57
    Lennart Stoop
    0

    Great to hear that Jesper! You might want to test against permissions though, e.g. make sure a non privileged user cannot upload any files to the public tree when the create option has been enabled on DAMP.

    Not sure if its possible but I think it would be better if DAMP would either allow you to configure a custom tree (e.g. in web.config, having the DigibizMediaTree there as a default, or to make the picker smart enough to recognize custom trees in the DB.

    Grtz

    L

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 03, 2012 @ 11:19
    Jeroen Breuer
    0

    Glad you got it working :). Which version of DAMP did you update? If I'm going to release it I only want to do it for DAMP 2.0 since it's mucht better than DAMP 1.0 and also has a couple of important bug fixes.

    Not sure if I would release it as a complete package. If I add the modified dll files as zip to the package files tab on the project page that should also be enough. Just copy over the files and you have a version which works with the public media tree (which only works if that package is installed).

    Jeroen

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 03, 2012 @ 11:24
    Jesper Ordrup
    0

    Hi Jeroen,

    I updated V1. No time for installing a v2 and test. I think you'r right about not releasing it as a package. Just let the dlls be avail for download. or not :-) 

    Temp link: http://dl.dropbox.com/u/572995/damp_v10_publicmediatree_dlls.zip

    best

    Jesper

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 03, 2012 @ 13:01
    Jeroen Breuer
    0

    For now I'm not going to put it on the project page because I don't support DAMP 1.0 anymore. If people want to use DAMP with the public media tree they can just read this topic :). If someone will create it for DAMP 2.0 I'll put those dll files on the project page.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft