CoreCommunity ExtensionsDistributionsFeature-RequestsTYPO3 6.2 Projects (+)(Archived Projects)

Bug #8542

default linkhandler produces error

Added by Georg Ringer about 5 years ago. Updated over 3 years ago.

Status:Closed Start date:2010-06-29
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-

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

8542_v01.diff Magnifier (1.3 kB) Marcus Schwemer, 2011-07-09 16:48

History

#1 Updated by Thomas Allmer about 5 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...

#2 Updated by Marcus Schwemer about 4 years ago

  • File 8542_v01.diffMagnifier 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

#3 Updated by Thomas Allmer over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF