Zum Inhalt springen

auf EXT: Language Selection auf Unterseite mit ext. Tmpl. verschwindet.

Erstellt am 31. Mai 2005 · 2 Antworten · letzte Antwort am 1. Juni 2005

Tags: Frage

nanno ·

Hallo ihr,
ich habe mittlerweile einen grossen Seitenbaum,
im one-tree-concept, mehrsprachig erstellt.
Auf einer Unterseite, genauer die für Sitemap und Suche,
wird ein ext Template benutzt.
Setup wird gelöscht, Constants ergänzt, CSSStyledContent wieder rein,
und rootlevel ist es natürlich nicht.

Das Problem, auf der Sitemapseite sieht man nix von der Language Selection.
Es gibt ausser der Sitemap, noch weitere ContentElemente.
Diese habe ich natürlich wie bei dehn anderen Seiten angelegt.
Später hab ich sogar eine andere Unterseite kopiert.

Der einzige Unterschied, zu den auch noch nicht gross gefüllten anderen Seiten,
findet sich also im Template.
Der Typoscriptteil hatt 300 Zeilen,
ich werde automaketemplate, sitemap,
language selection und Page Posten.

Constants:

styles.sitemap.gs >
styles.sitemap.gs {
  entryLevel = 0
  # cat=gs-sitemap; type=small; label=exclude PID: If there's certain page-id number you would like to exclude from the sitemap (eg. the sitemap-page itself), then enter it here (comma-list)
  # excludeUids = 

  # cat=gs-sitemap/links; type=small; label=Target: The target of the links in the sitemap. 
  target = _top
  # cat=gs-sitemap/color; type=color; label=Background color, headers
  color = olive
  # cat=gs-sitemap/typo; type=wrap; label=Sitemap, Header Wrap: This wrap is placed around the header of the sitemap.
  headerWrap = <div align="center"><b><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="white"> | </font></b></div>
  # cat=gs-sitemap/typo; type=options[,upper,lower]; label=Header case
  headerCase = upper

  # cat=gs-sitemap/typo; type=wrap; label=Sitemap, Head Wrap 1: This wrap is placed around the every head item in the sitemap.
  wrap1 = <b><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="white"> | </font></b>

  # cat=gs-sitemap/typo; type=wrap; label=Sitemap, Second Wrap 2: This wrap is placed around the every second-level item in the sitemap.
  wrap2 = <font face="Verdana, Arial, Helvetica, sans-serif" size="1">|</font>

  # cat=gs-sitemap/typo; type=wrap; label=Sitemap, Third Wrap 3: This wrap is placed around the every third-level item in the sitemap.
  wrap3 = <font face="Verdana, Arial, Helvetica, sans-serif" size="1">|</font>

  # cat=gs-sitemap/; type=string; label=Bullet, Second Level
  bullet2 = <img src="media/bullets/blackdot.gif" width="5" height="9" alt="" />
 
  # cat=gs-sitemap/; type=string; label=Bullet, Third Level
  bullet3 = <img src="media/bullets/blackdot.gif" width="3" height="6" hspace="4" vspace="2" alt="" />

  # cat=gs-sitemap; type=boolean; label=Level 3?: If you would like the sitemap to render only two levels, un-check this option
  level3 = 1
}

Template Typoscript:

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/html_templates/styling.css

# Standard-Sprachen definieren. Default: Deutsch
config.linkVars = L
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE
 
# Deutsch default; sys_language.uid = 0
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = de
config.locale_all = deutsch
[global]

# English language, sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = english
[global]

# French language, sys_language.uid = 2
[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.language = fr
config.locale_all = france
[global]

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
  # Read the template file:
  content = FILE
  content.file = fileadmin/html_templates/boxen.html

  # Here we define which elements in the HTML that 
  # should be wrapped in subpart-comments:
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY
 
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title
  }
  # Prefix all relative paths with this value:
  # relPathPrefix = fileadmin/html_templates/
}

# The sitemap itself:
styles.sitemap.gs >
styles.sitemap.gs = COA
styles.sitemap.gs.wrap = <table border="0" cellspacing="0" cellpadding="0" align="center"> | </table>
styles.sitemap.gs {
  10 = TEXT
  10.data = leveltitle : {$styles.sitemap.gs.entryLevel}
  10.case = {$styles.sitemap.gs.headerCase}
  10.wrap = {$styles.sitemap.gs.headerWrap}
  10.wrap2 = <tr><td><table border="0" cellpadding="2" cellspacing="1" align="center"><tr bgcolor="{$styles.sitemap.gs.color}"><td> | </td></tr></table></td></tr>
  15 = TEXT
  15.value = <tr align="center" valign="middle"><td><img src="media/bullets/blackclear.gif" width="1" height="10" alt="" /></td></tr><tr bgcolor="{$styles.sitemap.gs.color}"><td><img src="clear.gif" width="1" height="1" alt="" /></td></tr>
  19 = TEXT
  19.value = <tr><td>

  # Here comes the sitemap below...
  21 = TEXT
  21.value =  </td></tr>
}

styles.sitemap.gs.20 = COA
styles.sitemap.gs.20.wrap = <table border="0" cellspacing="0" cellpadding="0" align="center"> | </table>
styles.sitemap.gs.20.10 = HMENU
styles.sitemap.gs.20.10 {
  entryLevel = {$styles.sitemap.gs.entryLevel}
  excludeUidList = {$styles.sitemap.gs.excludeUids}
  # special = directory
  # special.value = 1, 10
  wrap = <tr align="center" valign="middle"> |</tr>
  1 = TMENU
  1.NO {
    doNotShowLink = 1
    before = <td><img src="media/bullets/blackclear.gif" width="1" height="10" alt="" /></td>
  }
}

styles.sitemap.gs.20.30 = HMENU
styles.sitemap.gs.20.30 {
  # special = directory
  # special.value = 25
  # entryLevel = {$styles.sitemap.gs.entryLevel}
  # excludeUidList = {$styles.sitemap.gs.excludeUids}
  wrap = <tr align="left" valign="top"> |</tr>
  1 = TMENU
  1.target = {$styles.sitemap.gs.target}
  1.expAll = 1
  1.NO {
    stdWrap.htmlSpecialChars = 1
    wrapItemAndSub = <td><table border="0" cellpadding="1" cellspacing="1">|</table></td>
    allWrap = <tr><td bgcolor="{$styles.sitemap.gs.color}" colspan="3"><div align="center">|</div></td></tr>
    linkWrap = {$styles.sitemap.gs.wrap1}
    ATagBeforeWrap = 1
  }

  2 = TMENU
  2.expAll = {$styles.sitemap.gs.level3}
  2.target = {$styles.sitemap.gs.target}
  2.NO {
    allWrap = <tr><td align="center" valign="top">{$styles.sitemap.gs.bullet2}</td><td align="left" valign="top" colspan="2">|</td></tr>
    linkWrap = {$styles.sitemap.gs.wrap2}
    ATagBeforeWrap = 1
    stdWrap.htmlSpecialChars = 1
  }
 
  3 = TMENU
  3.target = {$styles.sitemap.gs.target}
  3.NO {
    allWrap = <tr><td></td><td align="center" valign="top">{$styles.sitemap.gs.bullet3}</td><td align="left" valign="top">|</td></tr>
    linkWrap = {$styles.sitemap.gs.wrap3}
    ATagBeforeWrap = 1
    stdWrap.htmlSpecialChars = 1
  }
}

# Konfiguriere Language Selection
temp.languageMenu < plugin.tx_srlanguagemenu_pi1
temp.languageMenu.showCurrent = 1
temp.languageMenu.defaultLayout = 0
temp.languageMenu.defaultLanguageISOCode = DE

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1

  # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY

  marks.INHALT < styles.sitemap.gs

  marks.LANGUAGESELECTION < temp.languageMenu
}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
  # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1

  # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

# Include the rest
page.20 < temp.pageeditpanel
page.30 < temp.addcontent

page.10.marks.LANGUAGESELECTION.flag.CUR.stdWrap.wrap = <div class="CUR"><img src="/media/bullets/arrow_no3.gif" alt="" />|</div>

Wenn jemand den ganzen Code haben will, häng ich ihn als Datei an.
Wer nun aufgepasst hatt, der vermisst das Inhaltselement,
das überall gleich sein soll.
Es wird styles.content.GetLeft in mein nun nicht gepostetes foldoutmenu in den Bottom geschoben.
Die einzige Debug Information die ich habe,
$languagesUidsList enthaelt die Default Language de.
$languages[] scheint leer zu sein.
Seltsamerweise bringt auch languagesUidsList und
explizites Setzen von showCurrent nix.

nanno ·

Ich hab schwierigkeiten das besser in Worte zu fassen.
Was fehlt euch hier?
Zugang zur Seite kann ich leider nicht einfach jedem verschaffen.
Bei entsprechender Authentifizierung, währ aber auch das drin.
Also, was fehlt euch?

nanno ·

Nimmt bitte ein Mod das erste auf im Titel weg?
Ich werde jetzt ausharren, oder noch eine ext umcoden.