---
title: "manuell eingebauen Link in die richtige Sprache lenken?"
url: "https://www.typo3.net/d/47340-manuell-eingebauen-link-in-die-richtige-sprache-lenken"
source: "typo3.net"
tags: ["TYPO3","Mehrsprachigkeit","Frage","Links"]
created: "2006-07-31"
last_reply: "2006-07-31"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# manuell eingebauen Link in die richtige Sprache lenken?

TYPO3 › Mehrsprachigkeit · 2 Antworten · gestartet 2006-07-31

## Eröffnungsbeitrag

**Cookiemonster** · 2006-07-31 · [Beitrag #1](https://www.typo3.net/d/47340-manuell-eingebauen-link-in-die-richtige-sprache-lenken/1)

Hallo Leute,
ich bin recht neu in Typo3 und habe die Aufgebe bekommen, einen kleinen Fehler auf einer HP zu fixen:

neben den Menüpunkten wurde manuell ein Link eingefügt, der zurück zur Startseite führt.
dieser ist allerdings hardgecoded im Template und hat daher keine Sprachvariable dabei.

gibts eine möglichkeit einfach per IF oder so abzufragen, welche sprache aktiv is und dem Link die Variable mitzugeben?

danke im Voraus,
Uli

## Antworten

### [#2](https://www.typo3.net/d/47340-manuell-eingebauen-link-in-die-richtige-sprache-lenken/2) · just2b · 2006-07-31

Hallo Uli,

machs sauber so:

```typoscript
temp.footerLeft = TEXT
temp.footerLeft {
	value = www.domain.tld
	typolink.target = _self
	typolink.parameter = 6
}
```

6 = ID der zu verlinkenden Seite

lg georg

### [#3](https://www.typo3.net/d/47340-manuell-eingebauen-link-in-die-richtige-sprache-lenken/3) · Cookiemonster · 2006-07-31

Danke soweit, aber ich bin noch ziemlicher Nullchecker... :o

hier mal das eigentliche Template:

```typoscript
###################################
# Page - Template

page=PAGE
page.typeNum=0

#container div
page.1=HTML
page.1.value(
<div id="bgMain" class="bgMain"></div>
<div id="border" class="border"> 
<div id="centerme" class="centerme"> 
    <div id="container" class="container"> 
)


#KOPFZEILE
page.5=COA
page.5{
5=TEXT
5.value=

10 = PHP_SCRIPT
10.file = fileadmin/scripts/language.php

10 = COA
10{
11= TEXT
11.value = ENGLISH
11.typolink {
 parameter.data = page:alias // TSFE:id
 additionalParams = &L=1
 ATagParams = class="metatxt"
}
11.wrap=<tr><td width="480"></td><td width="200" background="fileadmin/template/basics/meta_bg_hell.gif" class="metatxt" align="center"> | |
12= TEXT
12.value = DEUTSCH
12.typolink {
 parameter.data = page:alias // TSFE:id
 additionalParams = &L=0
 wrap =   | 
 ATagParams = class="metatxt"
}
12.wrap=|</td>
13= TEXT
13.value = LOGG
13.typolink {
 parameter.data = page:alias // TSFE:id 
 additionalParams = &id=103
 wrap =   | 
 ATagParams = class="metatxt"
}
13.wrap=<td width="200" background="fileadmin/template/basics/meta_bg_dark.gif" class="metatxt" align="center"><a href="index.php?id=103" class="metatxt">|<img src="fileadmin/template/basics/link_hell.gif" hspace="3" border="0" alt="" /></a></td></tr>

} 
10.stdWrap.wrap=<table width="805" border="0" cellspacing="0" cellpadding="3">|</table>
// ende Langsw
}
page.5.stdWrap.wrap=	<div id="meta" class="meta">|</div>
## ENDE TOP

##NAVIGATION
page.10=COA
page.10{
5 = CONTENT
5<temp.HAUPTNAV
10<temp.SUBMENUE
}
page.10.stdWrap.wrap=<div id="navi" class="navi"><a href="index.php?id=homepage"><div style="position:absolute; left: 600px; top:10px;z-index:10; height:40px; width:150px;"></div></a>|</div><!--<div id="contenttop" class="contenttop"></div>--><div id="contentmain" class="contentmain">

   

page.15=COA
page.15{
##TOPIMAGE
2=COA
2{
10<styles.content.getBorder
20=TEXT
20{
if.isFalse.numRows < styles.content.getBorder
cObject =IMAGE
cObject.file=fileadmin/template/basics/blankoHead.jpg
}
}
2.stdWrap.wrap=<div>|</div><br clear="all" />
}

## FOOTER
page.50=HTML
page.50.value(
 <br />
 <br />
</div>
			<div id="footer" class="footer">
				<div style="padding-top:15px;border-top: 1px solid #aaaabb;width:785px;">

<table width="95%">
            <tr> 
              
    <td valign="bottom"><table border="0" cellspacing="3" cellpadding="3">
        <tr> 
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="520" height="51">
<param name="movie" value="fileadmin/logosblender.swf" />
<param name="quality" value="high" />
<embed src="fileadmin/logosblender.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="520" height="51"></embed>
</object></td>
        </tr>
      </table>
      
    </td>
              <td width="100" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="50" height="50">
                  <param name="movie" value="fileadmin/template/basics/logoFooter.swf">
                  <param name="quality" value="high">
                  <embed src="fileadmin/template/basics/logoFooter.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="50" height="50"></embed></object> 
              </td>
            </tr>
          </table>

				</div><div class="footerTxt">©blue cell networks GmbH | <a href="index.php?id=96">Impressum</a> | <a href="index.php?id=97">AGB</a> | <a href="index.php?id=90">Kontakt</a></div>
			</div><br /><br /><br />
)

## ENDE FUSSZEILE

page.100=HTML
page.100.value(
		</div>
	</div>
</div>
)
## ENDE PAGE

## ANFANG LAYOUTS

temp.layout1 = TEMPLATE
temp.layout1.tx_rlmptmplselector.title = Layout 1
temp.layout1.tx_rlmptmplselector.imagefile=layout1.gif
temp.layout1.tx_rlmptmplselector.templateType=main
temp.layout1.template = COA
temp.layout1.template {
#SEITENINHALT
1=HTML
1.value(
<div style="width:785px;"> 
<table cellspacing="4" width="100%" border="0">
            <tr> 
              <td width="" valign="top" align="left"> 
              <div style="height:auto;"> 
)
5<temp.SEITENTITEL
15<styles.content.get
15.wrap=<div class="inhalte">|</div>
20=HTML
20.value(
</div></td></tr></table></div>
)
}

temp.layout2 = TEMPLATE
temp.layout2.tx_rlmptmplselector.title = Layout 2
temp.layout2.tx_rlmptmplselector.imagefile=layout2.gif
temp.layout2.template = COA
temp.layout2.template {
1=HTML
1.value (
<div style="width:785px;"><table width="100%" border="0" cellspacing="0"><tr><td width="" valign="top" align="left"><div style="height:auto;">
)
#SEITENINHALT
5<temp.SEITENTITEL
15<styles.content.get
15.wrap=<div class="inhalte">|</div></div></td>
#RECHTS
40<styles.content.getRight
40.stdWrap.wrap=<td width="194" valign="top" align="left"><div class="contentFensterCss" style="height:auto;margin-top:20px;"><div style="padding:10px;">|</div></div></td></tr></table></div>
50=HTML
5.value (
</div>
)
}

temp.layout3 = TEMPLATE
temp.layout3.tx_rlmptmplselector.title = Homepage
temp.layout3.tx_rlmptmplselector.imagefile=layout3.gif
temp.layout3.template = COA
temp.layout3.template {
#SEITENINHALT
1=HTML
1.value(
<div> 
)
15<styles.content.get
15.wrap=|
20=HTML
20.value(
</div>
)

}


plugin.tx_rlmptmplselector_pi1.templateObjects.main {
10 < temp.layout1
20 < temp.layout2       
30 < temp.layout3
} 
plugin.tx_rlmptmplselector_pi1.defaultTemplateObjectMain = 10
page.20 < plugin.tx_rlmptmplselector_pi1
page.20.stdWrap.wrap=<div id="contenttop" class="contenttop"></div><div id="contentmain" class="contentmain">|</div>

# ENDE LAYOUTS
```

der teil:

```typoscript
page.10.stdWrap.wrap=<div id="navi" class="navi"><a href="index.php?id=homepage"><div style="position:absolute; left: 600px; top:10px;z-index:10; height:40px; width:150px;"></div></a>|</div><!--<div id="contenttop" class="contenttop"></div>--><div id="contentmain" class="contentmain">
```

(zu finden in Zeile 69)
beinhaltet den Link, der dynamisch werden soll und das DIV, das die Link-Area bezeichnet...
(Fragt mich bitte nicht, wer und warum das so gemacht worden is - ic hsolls nur reparieren :) )

---

Quelle: „manuell eingebauen Link in die richtige Sprache lenken?“, typo3.net, https://www.typo3.net/d/47340-manuell-eingebauen-link-in-die-richtige-sprache-lenken
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
