Bug #8542
default linkhandler produces error
0%
Description
If using the full.ts example, a linkhandler for tt_news is used. There are quite a few installations which don't use tt_news - therefore the example shouldn't be enabled as default.
Some possible solutions:
a) Disable the default example
b) Check if $GLOBALS['TCA'][$tableName] exists
c) Check with a query if the table exists.
I am for option b
Files
Updated by Thomas Allmer over 10 years ago
- Status changed from New to Needs Feedback
I just tried that and there seems to be a problem with the "loading" order... so if you install tinymce_rte and then tt_news it won't work... the other way around is fine
I tried this with a simple
if( $TCA['tt_news'] ) { //... }
in ext_tables.php
if you have a solution for that I would certainly integrate it...
Updated by Marcus Schwemer over 9 years ago
- File 8542_v01.diff 8542_v01.diff added
- Status changed from Needs Feedback to Resolved
The linkhandler now checks whether a table exists in TCA. If not, it skips creating links. This catches not only the default config for tt_news, but also uninstalled extensions (even if the tables still exist).
Patch attached.
Kind regards,
Marcus
You can find the current version also on my github: https://github.com/mschwemer/TYPO3-tinymce_rte