[TYPO3-core] RFC #12679: Pagemodule don't show clipboard paste icon when there is no content

Reinhard Führicht rf at typoheads.at
Wed Jul 14 11:12:56 CEST 2010


Am 2010-07-13 23:12, schrieb Steffen Kamper:
> Hi Reinhard,
>
> thanks for your patch.
> While reading i see the same code as in the list module, which makes me
> think: can't we move this code to the clipboard class? I mean the
> copy/paste/move links. It would reduce the code and we have it at the
> one place where it belongs to, so usage in other modules would be
> possible too without writing hundreds of code lines (or copy&paste from
> existing modules)
> What do you think?
>
> vg Steffen

Attached v9 of the patch.

- Moved getPasteLink() + getCopyLink() + getCutLink() to t3lib_clipboard
- Chnaged code in page module to use these methods
- Changed code in list module to use these methods too

I am not sure about the two methods getCopyLink() and getCutLink(). They 
could easily be merged to a single method. But this way it is more clear 
what they are doing.

I tested the code in page module and list module using different tables. 
I hope I didn't miss a bug.

Regards,
Reinhard




More information about the TYPO3-team-core mailing list