Copied to clipboard

Flag this post as spam?

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


  • bob baty-barr 1180 posts 1294 karma points MVP
    May 06, 2011 @ 21:05
    bob baty-barr
    0

    Thank you so much for putting this together... been bugging me for EVER!

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 06, 2011 @ 21:08
    Matt Brailsford
    0

    No problem.

    If you've got any other file extensions you think would be good to add to the default install, just let me know.

    Matt

  • Daniel Bardi 927 posts 2562 karma points
    May 07, 2011 @ 00:03
    Daniel Bardi
    0

    Nice job!.. it's the small tweaks like this that add so much to the experience... will be installing on several sites.

    Maybe add a config file to add custom extensions.

    Is the icon based on extension in name or file (hope it's the later)

  • Eran Meir 401 posts 543 karma points
    May 07, 2011 @ 00:05
    Eran Meir
    0

    this should be default on umbraco, great idea for a package :)

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 07, 2011 @ 15:41
    Matt Brailsford
    2

    Cheers guys

    @Daniel no need for config file, just drop any 16x16px gif in the /umbraco/images/umbraco/media/ folder where it's file name is the extension to match (ie jpg.gif, pdf.gif, xls.gif). If a file isn't found with that extension, the default umbraco graphic is used.

    Matches are made against the pysical file name, not the media title.

    Matt

  • Bjørn Fridal 274 posts 784 karma points
    May 09, 2011 @ 10:58
    Bjørn Fridal
    0

    Neat package. I have been thinking about making a similar one for ages, but you beat me to it :)

    Cheers
    Bjørn

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 09, 2011 @ 11:03
    Matt Brailsford
    0

    @Bjorn glad you like it, and you'll need to be faster next time =) 

  • Drew 165 posts 340 karma points
    May 12, 2011 @ 09:36
    Drew
    0

    Great work Matt - works well on 4.7.0 :)

    Something so simple makes a big difference to users, and stops those "why do my PDFs have a CD icon next to them?" questions!

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 12, 2011 @ 09:46
    Matt Brailsford
    0

    Hehe, thanks. Glad you find it usefull.

    Matt

  • Dav 44 posts 69 karma points
    Dec 01, 2011 @ 15:07
    Dav
    0

    Matt, first of all thanks for bringing a little sunshine to our umbraco lives :-) Definitely should be part of core if you ask me, we keep installing this on most sites we put up. Were wondering however, if you'd be willing to share the source? We're thinking of re-using the functinality for a user control displaying files for download, and it seems most logical to hook it up with your dll. If not, perhaps you could outline how you hooked your custom mechanisms into standard umbraco .ContentType.IconUrl?

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Dec 02, 2011 @ 09:07
    Matt Brailsford
    0

    Hi Dav,

    I've now added a link to the source code on the main projects page (underneath the resources heading).

    Many thanks

    Matt

  • Dav 44 posts 69 karma points
    Dec 02, 2011 @ 09:27
    Dav
    0

    Matt, you're a star - thank you ever so much for sharing! I keep being amazed at how the Umbraco community is an inclusive, open and kind bunch of people.

  • Chris Koiak 700 posts 2626 karma points
    Jan 18, 2012 @ 10:29
    Chris Koiak
    0

    Another very helpful package! Nice one mate.

    Chris

  • Jason N 55 posts 79 karma points
    May 11, 2012 @ 15:48
    Jason N
    0

    This isn't working for me unfortunatley.  I have a fresh install of 4.72 and installed the package through the package repository.  After installation, the folder  /umbraco/images/umbraco/media/ did not exists.  I create the media folder and added a 16x16 icon called pdf.gif to it.  I went to look at the pdf files stored in my media tree and the new icon dd not show.  Any guidance would be appreciated.  Thanks.

    UPDATE: I figred out the problem and my installation is working great now.  For some reason the image assets and dlls were all under the wrong directory (/umbraco4/images/umbraco/media/).  /Umbraco4 is the name of the folder which contains my and for some reason a folder with the same name was created under it. 

     

Please Sign in or register to post replies

Write your reply to:

Draft