Author Topic: [Solution] Additional file types not showing in the dashboard  (Read 4208 times)

eckes

  • Newbie
  • *
  • Posts: 3
    • View Profile
Hi,

I'm using FO to manage a bunch of Google Sketchup drawings which have the extension .skp. When I started FO and looked at the dashboard, no custom icons were shown in the documents widget, just the unknown file icon (the question mark). The problem seems to be in application/views/dashboard/widget_documents.php: on FO 1.6.2, line 14 reads:
Code: [Select]
<div class="db-ico ico-unknown ico-<?php echo str_replace(".""_"str_replace("/""-"$document->getTypeString()))?>"></div>
The ico-ext- part seems to be missing. When changing the line to
Code: [Select]
<div class="db-ico ico-unknown ico-<?php echo str_replace(".""_"str_replace("/""-"$document->getTypeString()))?> ico-ext-<?php echo pathinfo($document->getFilename(), PATHINFO_EXTENSION)?>"></div>
the small icons that I specified for the .skp extension get displayed correctly.
AFAICS, the issui is still present in FO 1.7 RC...

BTW: Who decided to have all text centered by default??

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: [Solution] Additional file types not showing in the dashboard
« Reply #1 on: May 13, 2010, 11:45:52 AM »
Thanks a lot eckes!

We'll take a look at it for 1.7.1.

 

anything