Author Topic: images as thumbnails in workspace overview  (Read 11146 times)

cloo

  • Freshman
  • *
  • Posts: 43
    • View Profile
    • cloo
images as thumbnails in workspace overview
« on: July 14, 2009, 06:08:56 am »
Optional of course.
It would provide quicker visual identification of workspace itself,
also function a little like a gallery, which is desired in many cases i deal with.

Jon

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: images as thumbnails in workspace overview
« Reply #1 on: July 16, 2009, 11:25:17 am »
Would find this useful for at-a-glance recognition also.
Discussion is an exchange of knowledge; argument is an exchange of ignorance."
- Robert Quillen

Guite

  • Guest
Re: images as thumbnails in workspace overview
« Reply #2 on: January 13, 2010, 03:11:03 pm »
This would definitely be a useful functionality.

editfish

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: images as thumbnails in workspace overview
« Reply #3 on: January 17, 2010, 12:19:46 am »
I like this idea.  For us firefox users, it might also be easy to view (cache/copy/link) the fav.ico of our saved web addresses.  It breaks up the lineality of the page, and provides a quick visual reference to the site I am looking for.

Editfish

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: images as thumbnails in workspace overview
« Reply #4 on: February 11, 2010, 11:20:25 am »
Would love that. Anyone up for the hack?
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.

Guite

  • Guest
Re: images as thumbnails in workspace overview
« Reply #5 on: February 11, 2010, 11:48:25 am »
Change line 31 in application/views/dashboard/widget_documents.php to:

Code: [Select]
</a>
<?php if ($document->isDisplayable()) {?>
    <div>
        <div style="position: relative; left:0; top: 0; width: 450px; height: 120px; background-color: white">
        <iframe style="width:100%;height:100%;border:1px solid #ddd;" src="<?php echo get_sandbox_url("feed""display_content", array("id" => $document->getId(), "user_id" => logged_user()->getId(), "token" => logged_user()->getTwistedToken())) ?>"></iframe>
        </div>
    </div>
<?php } elseif (($dtype $document->getFileType()) instanceof FileType && $dtype->getIsImage()) { ?>
    <div>
        <a href="<?php echo get_url('files''download_image', array('id' => $document->getId(), 'inline' => true)); ?>" target="_blank" title="<?php echo lang('show image in new page'?>">
            <img id="<?php echo $document->getId(); ?>Image" src="<?php echo get_url('files''download_image', array('id' => $document->getId(), 'inline' => true)); ?>" style="max-width:450px;max-height:120px"/>
        </a>
    </div>
<?php // if ?>
</td>

This enables previews for documents as well as images. As I have not that much experience with the object's inner behavior I simply copied some stuff from the files detail template and adapted it accordingly. If there are any improvements for this code please let me know.
« Last Edit: February 11, 2010, 11:52:12 am by Guite »

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
Re: images as thumbnails in workspace overview
« Reply #6 on: February 12, 2010, 01:29:10 pm »
Sorry to be dense - what exactly is meant by this?  What images and what overview are we talking about?
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

cloo

  • Freshman
  • *
  • Posts: 43
    • View Profile
    • cloo
Re: images as thumbnails in workspace overview
« Reply #7 on: August 12, 2010, 07:26:06 am »
Nice tip!

This is how it looks:


To be precise, in FO1.7 you have to replace the whole line 30, containing
Code: [Select]
</a></td> with the hack code.

filriyadh

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: images as thumbnails in workspace overview
« Reply #8 on: February 01, 2011, 12:09:16 pm »
awesome hack!!!!
thank you so much.

tez

  • Freshman
  • *
  • Posts: 15
    • View Profile
Re: images as thumbnails in workspace overview
« Reply #9 on: January 31, 2013, 09:23:23 pm »
It would need to load a thumbnailed cached version of the image so that it wont cause large photo files to be downloaded. At the moment I am dealing with clients who like to attach images without reducing them first, so working with the Documents area is becoming quite slow as a lot of the images are 4-5 megabytes and the whole file is loaded every time I want to edit the file or see what it is.