Project

General

Profile

Actions

Feature #19055

closed

hook request for function:'fileList' in class.browse_links.php

Added by Jesse Adler over 16 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-07-03
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

In function 'fileList' it would be great to have the possibility to add more links, beneath filename, plusbullet and info. This would be neccesary for integration of different extensions, e.g. for imagecropping, directly from the filebrowser.

I have patched this function for integration of EXT:fdfx_be_image, but I have not implemented a hook.
With a hook, this would have been much easier and of course cleaner.

Maybe there are different alternatives for usage of a hook.

// Adding link to cropping Extension 'fdfx_be_image'
$ATagCrop = "<a href=\"ext/fdfx_be_image/cm1/index.php?referrer=elementBrowser&bparams=".$this->bparams."&expandFolder=".$this->expandFolder."&id=".$filepath."\">";

$lines[]='<td>'.$ATagCrop.' '.$LANG->getLL('cropImage',1).' '.$ATag_e.'</td>';
//
(issue imported from #M8891)


Files

function.fileList.php (8.19 KB) function.fileList.php Administrator Admin, 2008-07-21 11:57
Actions #1

Updated by Jesse Adler over 16 years ago

$lines[] had c&p error

$lines[]='<td>'.$ATagCrop.$LANG->getLL('cropImage',1).$ATag_e.'</td>';

Actions #2

Updated by Jesse Adler over 16 years ago

I have added a modified function fileList.
In this function I have implemented two hooks.

First hook provides the possibility to add unlimited lines to fileList. This can be useful for 3rd party extension features like image cropping, file converting, ...

The second hook makes it possible to add custom html/js code to filebrowser. This might be useful for DOM manipulation of the fileList.

I hope that the developers like the modified method and include it in the next release.

Actions #3

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF