[TYPO3-dev] Using the linkvalidator for a field with internal type "file_reference"
Philipp Gampe
typo3.lists at philippgampe.info
Tue Mar 27 18:39:57 CEST 2012
Hi Ivan Ruiz Gallego,
Ivan Ruiz Gallego wrote:
> I have programmed an extension for simple document management. A
> database table contains document records. The field "file" contains the
> path (relative to web root) to the document. This field is configured
> (TCA) with a type "group" and an internal type "file_reference".
> Additionally, I have configured the link validator using the PageTS
> accordingly.
>
> I renamed some of the files referenced by document records (i.e. I
> deliberately generated some error cases). Unfortunately, the link
> validator didn't detect these errors. After checking my configuration, I
> took a look at the source code of the link validator and got the
> impression that the validator ignores this kind of fields. Can anyone
> confirm this impression?
I have not tried yet, but the magic happens in the analyzeRecord() function
in tx_linkvalidator_processor.php.
Would you mind sending me your extension, then I can have a look at it and
see if there is a simple fix for linkvalidator.
BTW, it seems that linkvalidator read some softref entry from TCA:
$conf = $GLOBALS['TCA'][$table]['columns'][$field]['config'];
that should look like this:
$TCA['tt_content']['columns']['bodytext']['config']['softref'] =
'typolink_tag,images,email[subst],url';
If you can confirm that this is a bug, please file a bug report at:
http://forge.typo3.org/projects/extension-linkvalidator/issues
Best regards
--
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln – linkvalidator
More information about the TYPO3-dev
mailing list