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

CONSTANTS
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).

Comments for Open links in the same window

Be the first to comment this article!


Add a comment


(will not be displayed, Gravatar is enabled)



(Fields marked with a * are mandatory)

Visitors found this page by searching for these keywords:

typoscript target · typo3 page_target · interner link typoscript · target link typoscript · typo3 openlink in typoscript