[TYPO3-UG France] Insertion dans un DIV
Thomas Soumarmon
thomas.soumarmon at cogitae.net
Fri Mar 14 07:04:26 CET 2008
Bonjour,
tu n'as pas mis ton sprache au bon endroit. Il doit etre au moment
ou tu parses le fichier :
# Substitute the ###sprache### subpart with lang menu:
temp.mainTemplate.subparts.sprache =< sprachwahl.languageMenu
Avec un fichier html du type
<div id="sprache"> ###SPRACHE### </div>
Cordialement,
philip jedar a écrit :
> Bonjour,
>
> Je suis honteux de vous embêter avec çà, mais je ne m'en sort vraiment
> pas... J'ai bien avancé sur les langues et lorsque que je rajoute
> manuellement le &L=2 à l'URL les pages s'affichent dans la bonne langue.
> Mais je n'arrive pas à injecter le menus dans ma div :
> <div id="header"> <div id="SPRACHE">Langage Menu </div> </div>
>
> Je me permet de copier coller mon TS, si vous vouliez bien me dire ce qui
> cloche... cela me soulagerait beaucoup. Mon problème est que j'acquière
> les
> connaissances par l'exemple... J'ai beau lire la théorie un grand nombre
> de
> fois.... Il m'en manque toujours un bout... Sniff...
> Merci de votre aide et de votre patience....
>
>
>
> ##rajout pour le problême de centrage IE
> config.doctype = xhtml_strict
> config.xmlprologue = none
>
>
> ##-- Real Url --##
> // Disable static document simulation
> config.simulateStaticDocuments = 0
>
> // Prefix anchors
> config.prefixLocalAnchors = all
>
> // Base tag
> config.baseURL = http://meroja-new.creativeminds.de/
>
> // Enable RealURL
> config.tx_realurl_enable = 1
>
>
> # Configuring the Auto-Parser for main template:
> plugin.tx_automaketemplate_pi1 {
> # Read the template file:
> content = FILE
> content.file = fileadmin/templates/newtmpl-mejo.htm
>
> # 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
>
> DIV.all = 1
> UL.id.menu = 1
>
>
> }
>
> # Prefix all relative paths with this value:
> relPathPrefix = fileadmin/templates/
>
> }
>
> # ------------------ MENU 1 HORIZONTAL -------
> temp.topmenu >
> temp.topmenu= HMENU
> temp.topmenu.entryLevel= 0
> temp.topmenu.expAll= 1
> temp.topmenu.1= TMENU
> temp.topmenu.1{
> wrap= <ul id="menu">|</ul>
> noBlur= 1
> NO= 1
> NO.allWrap= <li>|</li>
>
>
>
> }
>
> }
>
> # Main TEMPLATE cObject for the BODY
> temp.mainTemplate >
> 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
>
> # Substitute the ###topmenu### subpart with dynamic menu:
> subparts.topmenu < temp.topmenu
>
> # Substitute the ###content### subpart with some example content:
> subparts.content < styles.content.get
>
> # Substitute the ###left### subpart with some example content:
> subparts.left < styles.content.getLeft
>
>
> # Substitute the ###right### subpart with some example content:
>
> subparts.right < styles.content.getRight
>
> # Substitute the ###header### subpart with some example content:
>
> # subparts.header < styles.content.getBorder
>
>
> }
>
>
> # Main TEMPLATE cObject for the HEAD
> temp.headTemplate >
> 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
> }
>
>
>
> # Default PAGE object:
> page >
> page = PAGE
> page.typeNum = 0
>
>
>
> # 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
>
>
> ## SPRACHWAHL
> # **********************
>
> sprachwahl.languageMenu < plugin.tx_srlanguagemenu_pi1
>
>
> # address PLACEHOLDER LANGUAGE
> # *********************************************
> page.10.marks.SPRACHE =< sprachwahl.languageMenu
>
> config.sys_language_mode = strict; 0
> config.sys_language_overlay = hideNonTranslated
> # ****************************************************
>
>
> config.sys_language_uid = 0
> config.linkVars = L
> config.language = en
> config.locale_all = en_EN.UTF-8
> page.config.language = en
> page.config.locale_all = en_EN.UTF-8
>
>
>
> # German language, sys_language.uid = 4
> [globalVar = GP:L = 4]
> config.sys_language_uid = 4
> page.config.language = de
> page.config.locale_all = de_DE.UTF-8
> [global]
> _______________________________________________
> TYPO3-france mailing list
> TYPO3-france at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-france
>
--
---------------------------------------------
Thomas Soumarmon.
Ingénieur Développement & Logiciels Libres
---------------------------------------------
COGITAE //www.cogitae.net/
---------------------------------------------
tel: 05.34.14.39.39 - fax: 05.34.14.39.31
---------------------------------------------
More information about the TYPO3-france
mailing list