Zum Inhalt springen

Multiple Domain: TMENU > A > HREF mit baseURL

Erstellt am 14. Juli 2010 · 3 Antworten · letzte Antwort am 6. Dezember 2011

Tags: Frage

mistymantis ·

Hallo Allerseits,

Ich habe eine Multiple Domain installation aufgesetzt und nun werden auf der Startseite der beiden Domains eine Linkliste der Dienstleistungen aufgelistet.

Nun müsste ich einer der Linkliste im A > HREF den baseURL manuell eingeben. Wie mache ich das? TS sieht Momentan ziemlich Standardmässig aus.

lib.startNavDom1 = HMENU
lib.startNavDom1 {
	special = directory
	special.value = 12
	1 = TMENU
	1 {
		expAll = 1
		wrap = <ul id="left" class="links primary-links">|</ul>
		NO = 1
		NO {
			allWrap = <li id="mainNav_{elementUid}">|</li>|*|<li id="mainNav_{elementUid}">|</li>|*|<li id="mainNav_{elementUid}">|</li>
			doNotLinkIt = 0
			ATagTitle.field = description // title
			stdWrap.htmlSpecialChars = 1
			subst_elementUid = 1
		}
		
	}

	2 < .1
	2 {
		wrap = <ul class="links secondary-links">|</ul></li>
	}

}
lib.startNavDom2 = HMENU
lib.startNavDom2 {
	special = directory
	special.value = 22
	1 = TMENU
	1 {
		expAll = 1
		wrap = <ul id="left" class="links primary-links">|</ul>
		NO = 1
		NO {
			allWrap = <li id="mainNav_{elementUid}">|</li>|*|<li id="mainNav_{elementUid}">|</li>|*|<li id="mainNav_{elementUid}">|</li>
			doNotLinkIt = 0
			ATagTitle.field = description // title
			stdWrap.htmlSpecialChars = 1
			subst_elementUid = 1
		}
	}

	2 < .1
	2 {
		wrap = <ul class="links secondary-links">|</ul></li>
	}
}

multiple_domain.png

Julian.​Hofmann ·

Guten Morgen.

Nene, mach's Dir selbst nicht komplizierter, als nötig. Das erledigt TYPO3 ganz ohne große Verrenkungen für Dich - nur must Du ihm das auch sagen. 😉

typolinkCheckRootline

TSref schrieb

If set, then every “typolink” is checked whether it's linking to a page within the current rootline of the site.

If not, then TYPO3 searches for the first found domain record (without redirect) in that rootline from out to in.

If found (another domain), then that domain is prepended the link, the external target is used instead and thus the link jumps to the page in the correct domain.

typolinkEnableLinksAcrossDomains

TSref schrieb

This option enables to create links across domains using current domain's linking scheme. (...)

Details hierzu finden sich in der TSref: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/TopLevelObjects/Index.html

Viele Grüße
Julian