Open links in the same window
Suppose, you put an internal link into a TYPO3 content element by using an ID as the link target, e.g. link to internal page 42. Doing so, TYPO3 will generate an a href tag with the target attribute set to the default value 'page'. This will open the linked page in a new browser window - something you most likely want to avoid when opening an internal link. Besides, the default target 'page' will also be set when using some of the automatically generated lists of the TYPO3 content element Menu/Sitemap.
Using the following two statements in the CONSTANTS section of your TypoScript root template, you can define a specific target or - as the example shows - remove the 'target' attribute completely.
TypoScript: Remove target="page" from links
PAGE_TARGET = content.pageFrameObj =
Please make sure that you out these two statements in the CONSTANTS section and that they are placed outside of any TypoScript block (e.g. content).
Tweet


Comments for Open links in the same window