Project

General

Profile

Actions

Feature #15140

closed

When changing a page's alias, update all links

Added by Oliver Klee about 19 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-10-20
Due date:
% Done:

0%

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

Description

When I change a page's alias, I have to find and manually update all links. This should happen automatically.

(issue imported from #M1704)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #15043: Link checker neededClosedSebastian Kurfuerst2005-10-12

Actions
Actions #1

Updated by Sebastian Kurfuerst about 19 years ago

Currently, there is no possibility to such an automatic checking. However, with the new linkchecker in combination with the upcoming page spider it is possible to check for such links. Then, the link checker can be updated to implement the functionality described in this bug.
Greets, Sebastian

Actions #2

Updated by Oliver Klee about 19 years ago

This issue isn't resolved, please reopen it.

This issue (feature request) is about updating the links from the old alias to the new one, not just finding broken links.

Finding broken links doesn't solve this issue for two reasons:
1. The user has to remember the old and new aliases and still manually change all links.
2. When the old alias has been reused before the link check takes places, the links aren't broekn, but point to the wrong page.

Actions #3

Updated by Sebastian Kurfuerst about 19 years ago

OK, it seems that I misunderstood you, sorry. I think without a "global link table" such replacements are impossible... What do you think? Currently, this table can be created with the link checker, but only if the pages have been browsed in the frontend. I am not sure how to fill this table in the BE.
Greets, Sebastian

Actions #4

Updated by Oliver Klee about 19 years ago

A possible strategy would be to do an SQL query with regular expressions like this:

SELECT bodytext FROM tt_content WHERE bodytext REGEXP "<link[^>]*( )*oldalias( )*>"

and then do a string replace in the found records. (This REGEXP probably needs to be modified somewhat so that i catches all possible parameters of the LINK tag, but that is possible.)

Actions #6

Updated by Sebastian Kurfuerst about 19 years ago

Hi,
currently I cannot work on this issue, but in general new ideas are always welcome. On the wiki page (linkAbstraction) this idea could be followed there.
Greets, Sebastian

Actions #7

Updated by Sebastian Kurfuerst almost 19 years ago

Hi,
the new feature of "reference tables" will make this possible. See http://news.typo3.org/news/article/development-changelog-reference-table/ for details.
Somebody still needs to create an extension for it which might be integrated into the core later.
Greets, Sebastian

Actions #8

Updated by Karsten Dambekalns almost 19 years ago

Using REGEXP is a no-no, as this is (AFAIK) MySQL-specific, at least non-standard. Thus +1 for the reference table usage. Go, Sebastian! :)

Actions #9

Updated by Alexander Opitz over 11 years ago

  • Status changed from Accepted to Needs Feedback
  • Target version deleted (0)
  • TYPO3 Version changed from 3.8.0 to 3.8
  • PHP Version deleted (4)

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #10

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

If you think, that this is the wrong decision, then please write to the mailing list typo3.teams.bugs with issue number and an explanation.

Actions

Also available in: Atom PDF