Project

General

Profile

Actions

Feature #84990

closed

Check for other broken link types in RteHtmlParser

Added by Sybille Peters over 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Linkvalidator
Target version:
-
Start date:
2018-05-12
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Problem

Currently, RteHtmlParser::markBrokenLinks checks only for broken page links and marks them accordingly. This makes usage of Linkvalidator very tedious, because the RTE edit form is opened by clicking on the edit icon in the list of broken links and then the user has no context whatsover which of the (possibly) several links in the edit field he should fix.

Since the functionality of marking broken page links is already implemented in TYPO3, it seems ideal to use this feature and extend it to improve the usability of Linkvalidator by providing this feature for all links.

Possible considerations

If a link check is executed on each external link and file link etc. it means one extra DB query for each link on opening RTE. It might be a good idea to use already existing link cache in ExternalLinkTypes (todo).

Possible solution

If linkvalidator is installed and broken links records are available, the broken external links could be marked in the same fashion.

Also file links and other links could be considered.

This would not only make fixing broken links using the linkvalidator much easier, but would also make this information available whenever a record is edited.

Implement like this (see patch in Gerrit: https://review.typo3.org/56947):

  1. Add hooks in HtmlRteHtmlParser::markBrokenLinks for each linktype to call a link check function
  2. In Linkvalidator: connect to these hooks and check the tx_linkvalidator_link table for already detected broken links (information about all broken links will be in that table, can be done for external links, file links etc.)
The hooks should be called whenever the RTE editor is opened, if
  • It is configured as $GLOBALS['TYPO3_CONF_VARS']['RTE']['checklinkmode'] == 'full' (new configuration field)
  • OR if the RTE editor is opened from the Linkvalidator list of broken links (this is a todo)

Images

Current situation:


Solution

With the suggested solution all broken links will be marked!:


Files

rte.png (14.8 KB) rte.png Sybille Peters, 2018-05-25 22:27
broken-links2.png (76.8 KB) broken-links2.png Sybille Peters, 2018-05-31 12:12
broken-links1.png (24.2 KB) broken-links1.png Sybille Peters, 2018-05-31 12:14

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #84987: Add css style for broken page links in ckeditorClosedSybille Peters2018-05-12

Actions
Related to TYPO3 Core - Feature #84704: Linkvalidator: Open edit form for specific field in record (,not entire record) when fixing linksClosedSybille Peters2018-04-12

Actions
Actions #1

Updated by Sybille Peters over 6 years ago

  • Related to Bug #84987: Add css style for broken page links in ckeditor added
Actions #2

Updated by Gerrit Code Review over 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #3

Updated by Gerrit Code Review over 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #4

Updated by Sybille Peters over 6 years ago

  • Subject changed from Check for broken external links in RteHtmlParser to Check for other broken link types in RteHtmlParser
  • Description updated (diff)
Actions #5

Updated by Sybille Peters over 6 years ago

  • Description updated (diff)
Actions #6

Updated by Sybille Peters over 6 years ago

  • Parent task set to #85006
Actions #7

Updated by Sybille Peters over 6 years ago

  • Category changed from RTE (rtehtmlarea + ckeditor) to Linkvalidator

This could probably be better handled only in Linkvalidator itself using the already existing hook: `$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_parsehtml_proc.php']['transformation'][detectbrokenlinks]` to override markBrokenLinks

Actions #8

Updated by Gerrit Code Review over 6 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #9

Updated by Gerrit Code Review over 6 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #10

Updated by Gerrit Code Review over 6 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #11

Updated by Gerrit Code Review over 6 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #12

Updated by Gerrit Code Review over 6 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #13

Updated by Sybille Peters over 6 years ago

  • Related to Feature #84704: Linkvalidator: Open edit form for specific field in record (,not entire record) when fixing links added
Actions #14

Updated by Sybille Peters over 6 years ago

  • Description updated (diff)
Actions #15

Updated by Sybille Peters over 6 years ago

Actions #17

Updated by Sybille Peters over 6 years ago

  • Target version set to next-patchlevel
Actions #18

Updated by Sybille Peters over 6 years ago

  • Target version deleted (next-patchlevel)
Actions #19

Updated by Gerrit Code Review about 6 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #20

Updated by Gerrit Code Review about 6 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58669

Actions #21

Updated by Gerrit Code Review about 6 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #22

Updated by Gerrit Code Review about 6 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #23

Updated by Gerrit Code Review about 6 years ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56947

Actions #24

Updated by Gerrit Code Review about 5 years ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #25

Updated by Gerrit Code Review about 5 years ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #26

Updated by Gerrit Code Review about 5 years ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #27

Updated by Gerrit Code Review about 5 years ago

Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #28

Updated by Gerrit Code Review about 5 years ago

Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #29

Updated by Gerrit Code Review about 5 years ago

Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #30

Updated by Gerrit Code Review about 5 years ago

Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #31

Updated by Gerrit Code Review about 5 years ago

Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #32

Updated by Gerrit Code Review about 5 years ago

Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #33

Updated by Gerrit Code Review about 5 years ago

Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #34

Updated by Gerrit Code Review about 5 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62091

Actions #35

Updated by Gerrit Code Review about 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62091

Actions #36

Updated by Gerrit Code Review about 5 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62091

Actions #37

Updated by Gerrit Code Review about 5 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62091

Actions #38

Updated by Gerrit Code Review about 5 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62091

Actions #39

Updated by Gerrit Code Review about 5 years ago

Patch set 22 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #40

Updated by Gerrit Code Review about 5 years ago

Patch set 23 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #41

Updated by Gerrit Code Review about 5 years ago

Patch set 24 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #42

Updated by Gerrit Code Review about 5 years ago

Patch set 25 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #43

Updated by Gerrit Code Review about 5 years ago

Patch set 26 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #44

Updated by Gerrit Code Review about 5 years ago

Patch set 27 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #45

Updated by Gerrit Code Review about 5 years ago

Patch set 28 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #46

Updated by Gerrit Code Review about 5 years ago

Patch set 29 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #47

Updated by Gerrit Code Review about 5 years ago

Patch set 30 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #48

Updated by Gerrit Code Review about 5 years ago

Patch set 31 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #49

Updated by Gerrit Code Review about 5 years ago

Patch set 32 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #50

Updated by Gerrit Code Review about 5 years ago

Patch set 33 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/56947

Actions #51

Updated by Sybille Peters about 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #52

Updated by Gerrit Code Review about 5 years ago

  • Status changed from Resolved to Under Review

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62091

Actions #53

Updated by Gerrit Code Review about 5 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62091

Actions #54

Updated by Sybille Peters about 5 years ago

  • Status changed from Under Review to Resolved
Actions #55

Updated by Sybille Peters about 5 years ago

  • Parent task deleted (#85006)
Actions #56

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF