Zum Inhalt springen

Mehrere Subdomains auf verschiedene Ordner legen

Erstellt am 18. Februar 2009 · 3 Antworten · letzte Antwort am 20. Februar 2009

Tags: URLs & Routing, Frage

lil-trick ·

möchte mehrer Subdomains auf verschiedne Ordner verweisen lassen - aber es funktioniert irgendwie nicht

[globalString = berlin.domain.com]
OBENLINKS = HMENU
OBENLINKS {
special = directory
special.value = 258
1 = TMENU
1.wrap=<ul>|</ul>
1.NO = 1
1.NO.linkWrap = <li>|</li>
1.NO.ATagTitle.field = title // nav_title
1.ACT = 1
1.ACT < .NO
1.ACT.ATagParams = id=current
}
[global]

[globalString = cms.domain.com]
OBENLINKS = HMENU
OBENLINKS {
special = directory
special.value = 3
1 = TMENU
1.wrap=<ul>|</ul>
1.NO = 1
1.NO.linkWrap = <li>|</li>
1.NO.ATagTitle.field = title // nav_title
1.ACT = 1
1.ACT < .NO
1.ACT.ATagParams = id=current
}
[global]

alle Marker die nach diesem Global kommen macht er mir gar nicht mehr - irgendwo muss ein Fehler sein :-(

page = PAGE
page {
   config.disablePrefixComment = 1
   typeNum = 0
   bodyTag = 
   stylesheet = fileadmin/template/style.css
   
   
   bodyTagCObject = TEXT
   bodyTagCObject.field = uid
   bodyTagCObject.wrap = <body id="cmtest|"> 
      
   10 = TEMPLATE
   10.template = FILE
   10.template.file = fileadmin/template/index.html
   10.workOnSubpart = DOKUMENT
   
   10.marks {
   
        CONTENT = CONTENT
	CONTENT {
	table = tt_content
  	select.orderBy = sorting
  	select.languageField = sys_language_uid
  	select.where = colPos = 0
  	}

[globalString = berlin.domain.com]
   OBENLINKS = HMENU
   OBENLINKS {
	special = directory
	special.value = 258
	1 = TMENU
	1.wrap=<ul>|</ul>
	1.NO = 1
	1.NO.linkWrap = <li>|</li>
	1.NO.ATagTitle.field = title // nav_title
    	1.ACT = 1
    	1.ACT < .NO
    	1.ACT.ATagParams = id=current
        }
[global]  

[globalString = cms.domain.com]
   OBENLINKS = HMENU
   OBENLINKS {
	special = directory
	special.value = 3
	1 = TMENU
	1.wrap=<ul>|</ul>
	1.NO = 1
	1.NO.linkWrap = <li>|</li>
	1.NO.ATagTitle.field = title // nav_title
    	1.ACT = 1
    	1.ACT < .NO
    	1.ACT.ATagParams = id=current
        }
[global]  

   OBENRECHTS = HMENU
   OBENRECHTS {
	special = directory
	special.value = 4
	1 = TMENU
	1.wrap=<ul>|</ul>
	1.NO = 1
	1.NO.linkWrap = <li>|</li>
	1.NO.ATagTitle.field = title // nav_title
    	1.ACT = 1
    	1.ACT < .NO
    	1.ACT.ATagParams = id=current
        }	
	
}
}
	

}
}
Michaelh74 ·

Kannst Du nicht den Weg über eigene Domain-Records je Subdomain gehen?
Oder über htaccess?

Dein TS geht nicht, da KEINE Condition innherhalb von {} !

Gruß
Michael

lil-trick ·

ne würde nicht gehen da bestimmte Seiten bei allen Subdomains gleich sein sollen, damit man die nur einmal pflegen muss z. B Kontakt Impressum Ansprechpartner usw.