TYPO3

Open links in the same window

deutsch Hier klicken, um diese Seite auf Deutsch zu lesen: Link im selben Fenster öffnen

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

Add a comment


(will not be displayed)


(Fields marked with a * are mandatory)
Please note that your comment will be checked before it gets published.
Tutorial: TYPO3 links

You will find an in-depth description on how to set TYPO3 links in our tutorial:
The TYPO3 link tag.

Latest TYPO3 tutorial
How to define special links with custom tags

How to define special links with custom tags

September 2010 – How you can define your own tags for specific links in TYPO3. We show tags for nofollow links, links to other languages and links to tt_news records. more »

Latest TypoScript snippet
Automated backlink to parent page

Automated backlink to parent page

December 2009 – How to automatically generate a back link to a page one level above the current page. more »

Latest glossary entry
File browsers in TYPO3

File browsers in TYPO3

March 2010 – What are file browsers in TYPO3 and how can they be used? more »