[TYPO3-german] Problem Mehrsprachigkeit

Björn Hetzel BjoernHetzel at gmx.de
Tue Aug 20 13:34:17 CEST 2013


das ist das setup im root template mit conditions auf jeder sprache ein haken:

[config]
[extTarget] = 
[stat] = 1
[stat_typeNumList] = 0,1
[uniqueLinkVars] = 1
[tx_extbase]
[persistence]
[enableAutomaticCacheClearing] = 1 #
[updateReferenceIndex] = 0
[classes]
[Tx_Extbase_Domain_Model_FrontendUser]
[Tx_Extbase_Domain_Model_FrontendUserGroup]
[index_enable] = 1 // Indexed Search
[index_externals] = 1
[index_metatags] = 1
[admPanel] = 0 // Administrator settings
[debug] = 0
[doctype] = xhtml_trans
[renderCharset] = utf-8 // Character sets
[metaCharset] = utf-8
[cache_period] = 43200 // Cache settings
[sendCacheHeaders] = 1
[baseURL] = http://www.fzth.de/
[simulateStaticDocuments] = 1
[tx_realurl_enable] = 0
[linkVars] = L // Language Settings # Condition to add specific stylesheet for the frontpage only # Condition to add extra CSS for Internet Explorer 6 [END] Canonical Duplicate-Content Vermeidung
[sys_language_uid] = 5 # Set baseURL setting for http or https // Condition to switch the doctype and xml prologue // Condition to set language according to L POST/GET variable
[language] = it
[locale_all] = it_IT
[htmlTag_langKey] = it
[prefixLocalAnchors] = all // Link settings # # absRefPrefix = /
[intTarget] =  // Remove targets from links
[disablePrefixComment] = 1 // Code cleaning
[removeDefaultJS] = external // Move default CSS and JS to external file
[inlineStyle2TempFile] = 1
[spamProtectEmailAddresses] = -3 // Protect mail addresses from spamming
[spamProtectEmailAddresses_atSubst] = @<span style="display:none;"...
[headerComment] = 
[plugin]
[tx_felogin_pi1] = USER_INT # TypoScript added by extension "felogin" # Setting felogin plugin TypoScript
[tx_indexedsearch] = USER_INT # TypoScript added by extension "indexed_search" # Setting indexed_search plugin TypoScript
[tx_automaketemplate_pi1] = USER # TypoScript added by extension "automaketemplate" # Setting automaketemplate plugin TypoScript
[includeLibs] = typo3conf/ext/automaketemplate/pi1/class.t...
[userFunc] = tx_automaketemplate_pi1->main
[content] = FILE # Configuring the Auto-Parser for main template: # Read the template file
[file] = fileadmin/default/templates/typo3-intro-templ...
[elements]
[BODY]
[all] = 1
[subpartMarker] = DOCUMENT_BODY
[HEAD]
[DIV]
[id]
[navigationFirstLevelMenu] = 1 # Configure which HTML-tags should be made replacable by subparts
[navigationSecondLevelMenu] = 1
[topMenu] = 1
[languageMenu] = 1
[breadcrumb] = 1
[siteTitle] = 1
[searchBox] = 1
[footerContent] = 1
[mainContent] = 1
[secondaryContent] = 1
[navigationContent] = 1
[H1]
[tx_pagebrowse_pi1] = USER # TypoScript added by extension "pagebrowse" # Setting pagebrowse plugin TypoScript
[tx_mmforum_pi1] = USER # TypoScript added by extension "mm_forum" # Setting mm_forum plugin TypoScript
[tx_mmforum_pi2] = USER_INT # TypoScript added by extension "mm_forum" # Setting mm_forum plugin TypoScript
[tx_mmforum_pi3] = USER # TypoScript added by extension "mm_forum" # Setting mm_forum plugin TypoScript
[tx_mmforum_pi4] = USER # TypoScript added by extension "mm_forum" # Setting mm_forum plugin TypoScript
[tx_mmforum_pi5] = USER # TypoScript added by extension "mm_forum" # Setting mm_forum plugin TypoScript
[tx_mmforum_pi6] = USER_INT # TypoScript added by extension "mm_forum" # Setting mm_forum plugin TypoScript
[tx_srlanguagemenu_pi1] = USER # TypoScript added by extension "sr_language_menu" # Setting sr_language_menu plugin TypoScript
[tx_irfaq_pi1] = USER # TypoScript added by extension "irfaq" # Setting irfaq plugin TypoScript
[tx_rgsmoothgallery_pi1] = USER # TypoScript added by extension "rgsmoothgallery" # Setting rgsmoothgallery plugin TypoScript
[tx_mcgooglesitemap_pi1] = USER # TypoScript added by extension "mc_googlesitemap" # Setting mc_googlesitemap plugin TypoScript
[tx_mcgooglesitemap_pi2] = USER # TypoScript added by extension "mc_googlesitemap" # Setting mc_googlesitemap plugin TypoScript
[tx_mcgooglesitemap_pi3] = USER # TypoScript added by extension "mc_googlesitemap" # Setting mc_googlesitemap plugin TypoScript
[tx_gomapsap_pi1] = USER # TypoScript added by extension "go_maps_ap" # Setting go_maps_ap plugin TypoScript
[tx_tgmsimplegooglemap_pi1] = USER_INT # TypoScript added by extension "tgm_simplegooglemap" # Setting tgm_simplegooglemap plugin TypoScript
[tx_emimageflow]
[tx_cbgooglemaps]
[tx_rlmptmplselector_pi1] = USER # TypoScript added by extension "rlmp_tmplselector" # Setting rlmp_tmplselector plugin TypoScript
[tt_news] = USER
[tx_comments_pi1]
[tx_muniProcAdm_pi1]
[dtkeyword_analyzer]
[tx_cssstyledcontent]
[wt_spamshield]
[includeLibs]
[page] = PAGE # Make the PAGE object
[10] = TEMPLATE # Add a TEMPLATE object to the page # We use the template autoparser extension to easily replace parts of the HTML template by dynamic TypoScript objects
[template] = < plugin.tx_automaketemplate_pi1 # Use the HTML template from the automake template plugin
[workOnSubpart] = DOCUMENT_BODY # Use the <body> subpart
[subparts]
[headerData]
[10] = TEMPLATE
[20] = TEXT
[200] = COA
[333] = TEXT
[value] =  <link rel="shortcut icon" href="http://f...
[1337] = COA
[9999] = TEXT
[typeNum] = 0 # Regular pages always have typeNum = 0
[shortcutIcon] = fileadmin/default/templates/images/favicon.ico # Add the icon that will appear in front of the url in the browser # This icon will also be used for the bookmark menu in browsers
[bodyTagCObject] = CASE # Add class to bodytag to select which columns will be used in the HTML template # Labels for the values used in this field are defined in the TSconfig field of the root page of the website
[meta]
[includeCSS]
[dmc_imageAlttext]
[lib]
[parseFunc]
[parseFunc_RTE]
[stdheader] = COA # Content header:
[content] = CONTENT # config.linkVars = L # Insert the news plugin in single-view mode instead of normal page content if a news article is requested # In all other cases, get the content of the middle column and add it to the 'content' part
[contentleft] = COA
[contentright] = COA
[searchbox] = COA # Create the searchbox in TypoScript, so we can easily include in on every page
[sitetitle] = TEXT
[footer] = COA # The method used here to fetch a record from a page or folder is slightly different from the one used # to fetch the loginbox in lib.contentleft # The method here doesn't refer to a specific record but takes the first record from the folder. This # has the advantage that an editor can delete the record and just create a new one, and it still works.
[canonical] = COA # [Begin] Canonical Duplicate-Content Vermeidung
[tt_content] = CASE
[tt_news] = < plugin.tt_news
[menu] = HMENU
[1] = TMENU
[wrap] = <ul>|</ul>
[expAll] = 1 # Always unfold all sub-levels of the menu
[noBlur] = 1 # Remove the (old) default behaviour which adds onfocus="blurLink(this);" to all links
[NO] = 1 # Define the normal state (not active, not selected) of menu items # Using NO=1 to activate normal state is not necessary, but useful when copying
[ACT] = 1 # Copy properties of normal to active state, and then add a CSS class for styling
[CUR] = 1 # Copy properties of normal to current state, and then add a CSS class for styling
[firstlevel] = HMENU # Start with copying our default menu configuration so we don't have to repeat our selves (except in the explanation, didn't I already mention this?) ;-)
[1] = TMENU
[wrap] = <ul>|</ul>
[expAll] = 1 # Always unfold all sub-levels of the menu
[noBlur] = 1 # Remove the (old) default behaviour which adds onfocus="blurLink(this);" to all links
[NO] = 1 # Define the normal state (not active, not selected) of menu items # Using NO=1 to activate normal state is not necessary, but useful when copying
[ATagTitle]
[wrapItemAndSub] = <li>|</li> |*| <li>|</li> |*| <li ... # Use the option-split feature to generate a different wrap for the last item on a level of the menu # The last item on each level gets class="last" added for CSS styling purposes. # # See the TSref documentation for details about option split and other features: # http://typo3.org/documentation/document-library/references/doc_core_tsref/current/
[stdWrap]
[ACT] = 1 # Copy properties of normal to active state, and then add a CSS class for styling
[CUR] = 1 # Copy properties of normal to current state, and then add a CSS class for styling
[entryLevel] = 0 # Since this is the top-level menu, we start this menu at the root level of the website
[secondlevel] = HMENU # This menu is slightly more complicated than the others because we copy our default menu again, but then we'll start overriding some settings from the default menu. # To get a full overview of the configuration of this menu you should look at both our default 'menu' and the 'menu.secondlevel' as shown below. # You can use the TypoScript Object Browser to view the end result of this. # (go to the Template module and select 'Typoscript Object Browser' in the selectbox in the right frame.)
[top] = HMENU # Copy basic menu object from TS template 'menu' so we don't have to repeat all that
[language] = HMENU
[breadcrumb] = COA # For the breadcrumb cObject we use a HMENU of the type 'rootline'
[resources] = 
[sitetitle] = Automatikgetriebe | Hetzel Fahrzeugtechnik
[types]
[0] = page


und das die zu den conditions passenden konstanten:

[plugin]
[dmc_imageAlttext]
[styles]
[content]
[defaultHeaderType] = 1
[pageFrameObj] = 
[shortcut]
[spaceBefore] = 0
[spaceAfter] = 0
[splash]
[PAGE_TARGET] = 
[contentpage]
[config]
[filepaths]
[menu]
[top]
[pages] = 28


More information about the TYPO3-german mailing list