Über verschiedene URL`s die gleiche Typo3 Instanz aufrufen in verschiedene Konfigurationen

  • schumahs schumahs
    T3PO
    0 x
    23 Beiträge
    0 Hilfreiche Beiträge
    26. 01. 2012, 08:51

    Hallo,

    hoffe ich kann mich richtig ausdrücken und verständlich erklären.
    Ich habe ein Intranet zu betreuen was auf Typo3 basiert.

    Dieses Intranet liegt unterhalb eines SAP Portals als URL Iview und wird dementsprechend aufgerufen.
    Funktioniert auch tadellos.

    Sollte das Portal mal nicht funktionieren,,,was leider das ein oder andere mal vorkommt, kann ich das Intranet auch direkt via Browser aufrufen. Das Problem was ich allerdings dann habe ist, das ich den Header vom Typo3 dann einschalten muss, den ich, wenn alles normal läuft ausgeschaltet habe.

    Dieses realisiere ich via nachfolgendem Eintrag

    #10.template.file = fileadmin/templates/baselayoutWithHeader.html
    10.template.file = fileadmin/templates/baselayoutWithoutHeader.html

    Also kann ich hier definieren welches Template gezogen werden soll.
    Das ganze funktioniert ueber die URL des Webservers wo das Intranet drauf läuft.

    Was allerdings nervt ist das ich das ganze eventuell auch am WE machen muss wenn das Portal mal nicht funktioniert.
    Daher möchte ich nachfolgendes

    Ein Typo3
    Aufruf via URL http://intranet.mit.header.com ruft #10.template.file = fileadmin/templates/baselayoutWithHeader.html auf
    und http://intranet.ohne.header.com ruft 10.template.file = fileadmin/templates/baselayoutWithoutHeader.html ohne Header auf.

    Ideen ??

    Hoffe habe mich verständlich ausgedrückt.

    LG.

    Helmut


  • Norman2k Norman2k
    Jedi-General
    0 x
    1657 Beiträge
    80 Hilfreiche Beiträge
    26. 01. 2012, 09:02

    [url=http://www.typo3.net/tsref/conditions/globalstring/]http://www.typo3.net/tsref/conditions/globalstring/[/url]

  • schumahs schumahs
    T3PO
    0 x
    23 Beiträge
    0 Hilfreiche Beiträge
    26. 01. 2012, 09:16

    [quote="Norman2k"]
    [url=http://www.typo3.net/tsref/conditions/globalstring/]http://www.typo3.net/tsref/conditions/globalstring/[/url]

    [/quote]

    Hallo,

    habe ich zwar gefunden aber leider nicht ganz verstanden .....sorry zu doof.
    gib mir bitte eien Ansatz wie ich anfangen soll..

    DANKE

  • Norman2k Norman2k
    Jedi-General
    0 x
    1657 Beiträge
    80 Hilfreiche Beiträge
    26. 01. 2012, 09:52

    1. page.10.template.file = fileadmin/templates/baselayoutWithoutHeader.html
    2. [globalString = HTTP_HOST=intranet.mit.header.com]
    3. page.10.template.file = fileadmin/templates/baselayoutWithHeader.html
    4. [global]

  • schumahs schumahs
    T3PO
    0 x
    23 Beiträge
    0 Hilfreiche Beiträge
    26. 01. 2012, 10:19

    [quote="Norman2k"]

    1. page.10.template.file = fileadmin/templates/baselayoutWithoutHeader.html
    2. [globalString = HTTP_HOST=intranet.mit.header.com]
    3. page.10.template.file = fileadmin/templates/baselayoutWithHeader.html
    4. [global]

    [/quote]

    OK....hier noch mal mein script im Ausschnitt

    config.linkVars = L
    config.sys_language_uid = 0
    config.language = de
    config.locale_all = German

    # Default PAGE object:
    page = PAGE
    page {
    typeNum = 0

    stylesheet = fileadmin/css/solvents.css

    headerData.5 = TEXT
    headerData.5.field = subtitle // title
    headerData.5.wrap = <title>Sasol Solvents Intranet -&nbsp; | </title>

    10 = TEMPLATE
    10.template = FILE

    #Schumacher01/2012

    10.template.file = fileadmin/templates/baselayoutWithHeader.html
    #10.template.file = fileadmin/templates/baselayoutWithoutHeader.html
    #Schumacher01/2012

    10.marks {

    LANGUAGE = TEXT
    LANGUAGE {
    field = uid
    wrap = <a style="font-size:11px;" href="index.php?id=|&L=1">English version</a>
    }

    PRINTLINK = IMAGE
    PRINTLINK {
    file = fileadmin/img/print2.gif
    stdWrap.postUserFunc = tx_make_printlink
    }

    LASTCHANGED = TEXT
    LASTCHANGED {
    field = SYS_LASTCHANGED
    date = j.m.Y
    wrap = Letzte Änderung: |
    }


    CENTER = CONTENT
    CENTER {
    table = tt_content
    select.orderBy = sorting
    select.where = colPos = 0
    select.languageField = sys_language_uid
    }

    TEASER = COA
    TEASER.10 = CONTENT
    TEASER.10 {
    table = tt_content
    select.where = colPos = 2
    select.orderBy = sorting
    select.languageField = sys_language_uid
    }

    MENU = HMENU
    MENU {
    #special = rootline
    #special.value = 5
    #special.range= 1|0

    entryLevel = 1

    1 = TMENU


    1.NO = 1
    1.NO.ATagParams = class="navi1"

    1.CUR = 1
    1.CUR.allWrap = <b>|</b>
    1.CUR.ATagParams = class="navi1"

    1.IFSUB = 1
    1.IFSUB < 1.NO
    1.IFSUB.ATagBeforeWrap = 1
    1.IFSUB.ATagParams = class="navi1" style="background:url(fileadmin/res/images/hasSubpages.gif) #ddd no-repeat right"

    1.ACTIFSUB = 1
    1.ACTIFSUB.ATagBeforeWrap = 1
    1.ACTIFSUB.ATagParams = class="navi1" style="background:url(fileadmin/res/images/hasSubpages.gif) #ddd no-repeat right"

    1.expAll = 0

    2 = TMENU
    2.NO = 2
    2.NO.ATagParams = class="navi2"
    2.CUR = 1
    2.CUR.allWrap = <b>|</b>
    2.CUR.ATagParams = class="navi2"

    2.IFSUB = 1
    2.IFSUB < 1.NO
    2.IFSUB.ATagBeforeWrap = 1
    2.IFSUB.ATagParams = class="navi2" style="background:url(fileadmin/res/images/hasSubpages.gif) #eee no-repeat right"

    2.expAll = 0

    3 = TMENU
    3.NO = 3
    3.NO.ATagParams = class="navi3"
    3.CUR = 1
    3.CUR.ATagParams = class="navi3"
    3.CUR.linkWrap = <b>|</b>

    3.IFSUB = 1
    3.IFSUB < 1.NO
    3.IFSUB.ATagBeforeWrap = 1
    3.IFSUB.ATagParams = class="navi3" style="background:url(fileadmin/res/images/hasSubpages.gif) #fff no-repeat right"

    3.expAll = 0


    4 = TMENU
    4.NO = 3
    4.NO.ATagParams = class="navi4"
    4.CUR = 1
    4.CUR.ATagParams = class="navi4"
    4.CUR.linkWrap = <b>|</b>

    4.IFSUB = 1
    4.IFSUB < 1.NO
    4.IFSUB.ATagBeforeWrap = 1
    4.IFSUB.ATagParams = class="navi4" style="background:url(fileadmin/res/images/hasSubpages.gif) #fff no-repeat right"

    4.expAll = 0

    5 = TMENU
    5.NO = 3
    5.NO.ATagParams = class="navi5"
    5.CUR = 1
    5.CUR.ATagParams = class="navi5"
    5.CUR.linkWrap = <b>|</b>

    5.IFSUB = 1
    5.IFSUB < 1.NO
    5.IFSUB.ATagBeforeWrap = 1
    5.IFSUB.ATagParams = class="navi5" style="background:url(fileadmin/res/images/hasSubpages.gif) #fff no-repeat right"

    5.expAll = 0

    }

    BOTTOMMENU = HMENU
    BOTTOMMENU {
    special = directory
    special.value = 22
    1 = TMENU
    1.NO = 1
    1.NO.ATagParams = class="top"
    }

    TOPMENU = HMENU
    TOPMENU {
    special = directory
    special.value = 5
    1 = TMENU
    1.NO = 1
    1.NO.ATagParams = class="topnavi"

    1.CUR = 1
    1.CUR.ATagParams = class="topactive"
    #1.CUR.linkWrap = <b>|</b>

    1.ACT = 1
    1.ACT.ATagParams = class="topactive"
    }

    LOGO = IMAGE
    LOGO.file = fileadmin/img/logo.gif

    TRAILER = IMAGE
    TRAILER.file = fileadmin/img/swirl.jpg

    }
    }
    }

    #

  • schumahs schumahs
    T3PO
    0 x
    23 Beiträge
    0 Hilfreiche Beiträge
    26. 01. 2012, 10:19

    [quote="Norman2k"]

    1. page.10.template.file = fileadmin/templates/baselayoutWithoutHeader.html
    2. [globalString = HTTP_HOST=intranet.mit.header.com]
    3. page.10.template.file = fileadmin/templates/baselayoutWithHeader.html
    4. [global]

    [/quote]

    OK....hier noch mal mein script im Ausschnitt

    config.linkVars = L
    config.sys_language_uid = 0
    config.language = de
    config.locale_all = German

    # Default PAGE object:
    page = PAGE
    page {
    typeNum = 0

    stylesheet = fileadmin/css/solvents.css

    headerData.5 = TEXT
    headerData.5.field = subtitle // title
    headerData.5.wrap = <title>Sasol Solvents Intranet -&nbsp; | </title>

    10 = TEMPLATE
    10.template = FILE

    #Schumacher01/2012

    10.template.file = fileadmin/templates/baselayoutWithHeader.html
    #10.template.file = fileadmin/templates/baselayoutWithoutHeader.html
    #Schumacher01/2012

    10.marks {

    LANGUAGE = TEXT
    LANGUAGE {
    field = uid
    wrap = <a style="font-size:11px;" href="index.php?id=|&L=1">English version</a>
    }

    PRINTLINK = IMAGE
    PRINTLINK {
    file = fileadmin/img/print2.gif
    stdWrap.postUserFunc = tx_make_printlink
    }

    LASTCHANGED = TEXT
    LASTCHANGED {
    field = SYS_LASTCHANGED
    date = j.m.Y
    wrap = Letzte Änderung: |
    }


    CENTER = CONTENT
    CENTER {
    table = tt_content
    select.orderBy = sorting
    select.where = colPos = 0
    select.languageField = sys_language_uid
    }

    TEASER = COA
    TEASER.10 = CONTENT
    TEASER.10 {
    table = tt_content
    select.where = colPos = 2
    select.orderBy = sorting
    select.languageField = sys_language_uid
    }

    MENU = HMENU
    MENU {
    #special = rootline
    #special.value = 5
    #special.range= 1|0

    entryLevel = 1

    1 = TMENU


    1.NO = 1
    1.NO.ATagParams = class="navi1"

    1.CUR = 1
    1.CUR.allWrap = <b>|</b>
    1.CUR.ATagParams = class="navi1"

    1.IFSUB = 1
    1.IFSUB < 1.NO
    1.IFSUB.ATagBeforeWrap = 1
    1.IFSUB.ATagParams = class="navi1" style="background:url(fileadmin/res/images/hasSubpages.gif) #ddd no-repeat right"

    1.ACTIFSUB = 1
    1.ACTIFSUB.ATagBeforeWrap = 1
    1.ACTIFSUB.ATagParams = class="navi1" style="background:url(fileadmin/res/images/hasSubpages.gif) #ddd no-repeat right"

    1.expAll = 0

    2 = TMENU
    2.NO = 2
    2.NO.ATagParams = class="navi2"
    2.CUR = 1
    2.CUR.allWrap = <b>|</b>
    2.CUR.ATagParams = class="navi2"

    2.IFSUB = 1
    2.IFSUB < 1.NO
    2.IFSUB.ATagBeforeWrap = 1
    2.IFSUB.ATagParams = class="navi2" style="background:url(fileadmin/res/images/hasSubpages.gif) #eee no-repeat right"

    2.expAll = 0

    3 = TMENU
    3.NO = 3
    3.NO.ATagParams = class="navi3"
    3.CUR = 1
    3.CUR.ATagParams = class="navi3"
    3.CUR.linkWrap = <b>|</b>

    3.IFSUB = 1
    3.IFSUB < 1.NO
    3.IFSUB.ATagBeforeWrap = 1
    3.IFSUB.ATagParams = class="navi3" style="background:url(fileadmin/res/images/hasSubpages.gif) #fff no-repeat right"

    3.expAll = 0


    4 = TMENU
    4.NO = 3
    4.NO.ATagParams = class="navi4"
    4.CUR = 1
    4.CUR.ATagParams = class="navi4"
    4.CUR.linkWrap = <b>|</b>

    4.IFSUB = 1
    4.IFSUB < 1.NO
    4.IFSUB.ATagBeforeWrap = 1
    4.IFSUB.ATagParams = class="navi4" style="background:url(fileadmin/res/images/hasSubpages.gif) #fff no-repeat right"

    4.expAll = 0

    5 = TMENU
    5.NO = 3
    5.NO.ATagParams = class="navi5"
    5.CUR = 1
    5.CUR.ATagParams = class="navi5"
    5.CUR.linkWrap = <b>|</b>

    5.IFSUB = 1
    5.IFSUB < 1.NO
    5.IFSUB.ATagBeforeWrap = 1
    5.IFSUB.ATagParams = class="navi5" style="background:url(fileadmin/res/images/hasSubpages.gif) #fff no-repeat right"

    5.expAll = 0

    }

    BOTTOMMENU = HMENU
    BOTTOMMENU {
    special = directory
    special.value = 22
    1 = TMENU
    1.NO = 1
    1.NO.ATagParams = class="top"
    }

    TOPMENU = HMENU
    TOPMENU {
    special = directory
    special.value = 5
    1 = TMENU
    1.NO = 1
    1.NO.ATagParams = class="topnavi"

    1.CUR = 1
    1.CUR.ATagParams = class="topactive"
    #1.CUR.linkWrap = <b>|</b>

    1.ACT = 1
    1.ACT.ATagParams = class="topactive"
    }

    LOGO = IMAGE
    LOGO.file = fileadmin/img/logo.gif

    TRAILER = IMAGE
    TRAILER.file = fileadmin/img/swirl.jpg

    }
    }
    }

    #

  • Norman2k Norman2k
    Jedi-General
    0 x
    1657 Beiträge
    80 Hilfreiche Beiträge
    26. 01. 2012, 15:00

    Und nun? Soll ich dir meine Copy&Paste-Lösung jetzt auch noch in dein Typoscript richtig platzieren?

  • kolki kolki
    Jedi-General
    0 x
    1044 Beiträge
    5 Hilfreiche Beiträge
    26. 01. 2012, 15:02

    :D

  • schumahs schumahs
    T3PO
    0 x
    23 Beiträge
    0 Hilfreiche Beiträge
    26. 01. 2012, 15:08

    [quote="kolki"]
    :D
    [/quote]:D

    Danke

  • laptop24 laptop24
    Jedi-Ratsmitglied
    0 x
    557 Beiträge
    0 Hilfreiche Beiträge
    27. 01. 2012, 07:50

    Du hängst einfach am Ende Deines TypoScriptes diese Zeilen von Norman2k ran:

    1. [globalString = HTTP_HOST=intranet.mit.header.com]
    2. page.10.template.file = fileadmin/templates/baselayoutWithHeader.html
    3. [global]