[TYPO3-core] RFC: element browser hook

René Fritz rene at typo3.org
Tue Feb 14 23:20:41 CET 2006


This is a CVS patch request

Type: adding hook

Branch: TYPO3_4-0

The element browser is hardcoded. This means it is not possible to implement 
an own or modified element browser except using a XCLASS.
I use this for the DAM to display an extended EB when a file should be 
inserted.

What I've done are two things:
- implementing a hook like I did already in show_item.php
- separating all the classes and code to from browse_links.php to 
class.browse_links.php. This includes inserting $BACK_PATH and similar stuff 
when needed.

The second makes sense so you can reuse the classes for your own element 
browser. For example HTMLArea can use the class instead of the own which is 
99% the same.

Disadvantage: An old XCLASS of the EB (browse_links.php) will not work 
anymore, but that's what the hook is for.

Attached are the two complete files and a diff in one file just to show the 
differencies (not to apply).

René

-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class.browse_links.php
Type: application/x-php
Size: 77821 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060214/5e974c69/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: browse_links.php
Type: application/x-php
Size: 6324 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060214/5e974c69/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: browse_links.patch
Type: text/x-diff
Size: 38136 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060214/5e974c69/attachment-0002.bin 


More information about the TYPO3-team-core mailing list