[TYPO3-dev] filelist refence: direct edit link
Andrea Schmuttermair
abo at schmutt.de
Wed Nov 9 17:05:15 CET 2011
Hi,
I am completely new to the TYPO3 development process, so i kindly ask
for some support on a typo3 core enhancement.
In the filelist there is the column "Ref": it shows the number of file
references. If you click on it, you get the info popup and the
tt_content uid of all references.
Now I added an direct edit link in the filelist table.
It looks like this:
http://www.schmutt.de/wp-content/uploads/filelist_editref.jpg
I had to change the code in class.file_list.inc_new->makeRef($theData)
for that.
http://www.schmutt.de/wp-content/uploads/class.file_list.inc_new
(TYPO3 4.5.6)
A patch file is here:
http://www.schmutt.de/wp-content/uploads/class.file_list.patch
It Works on 4.5.6
No changes on this function till 4.6.0 -> it should work there as well.
About the code:
- I dont know what happens if the table is not tt_content
- Is it necessary to check edit permissions before showing the link -
like in class.db_list.inc -> LinkWrapItems
- If I click on the link, it looks like this:
http://www.schmutt.de/wp-content/uploads/filelist_editref2.jpg
For me it makes sense to have Filelist in the middle column, but user
may expect tree view?
Should edit open in a new window? If yes, is there any function I can call?
About the patch:
What can I do now with this code?
I think this is a useful addon for the Backend, so my first choice is to
add it to the core. How to do that?
If you don't think so, then it should be in an extension. But how can I
extend a core class??? Any hints would be usefull then (I never wrote
any backend extensions, only frontend)
Best regards,
Andrea
--
Andrea Schmuttermair
Certified Typo3 Integrator
http://www.schmutt.de
More information about the TYPO3-dev
mailing list