[TYPO3-english] Update 4.5.35 to 6.2.4: CoolURI

Axel Joensson a.joensson at web.de
Mon Sep 1 23:13:05 CEST 2014


Hello,

I am updating a productive site running with 4.5.35 to 6.2.4 by having
it cloned into a subdomain, it is already running almost smooth, except
for two issues, here comes the first: 

It is a five languages site, "de" (German) is defined as standard
language (L = 0). All other languages have directories "simulated" by
CoolURI like example.com/en/index.html, only L0 as standard runs
directly under example.com/index.html. 

Problem: The links in the language menue from *other* languages to the
German standard language pages are always wrong, they point to a file
with the name in *their* language instead of the German file name. Only
as long as moving only in the German tree, everything is fine. 

But after clicking to one of those links from other languages to German
pages (with wrong names), in the CoolURI cache the German pages appear
double: once just as id=5 and with their given resource name, which is
the desired behaviour I know from 4.5.35, but another time as L=0&id=5
with the wrong name, depending on the language they were clicked from.
What is the reason? Here are relevant parts of the CoolURIConf.xml:

<cooluri>
        <urlsuffix exclude=".xml$">.html</urlsuffix> 
        <removetrailingslash>1</removetrailingslash>
  <cooluris>1</cooluris>
  
  <cache>
    <usecache>1</usecache>
    <params2cool>
      <checkforchangeevery>1</checkforchangeevery>
    </params2cool>
    <cool2params>
      <translateifnotfound>0</translateifnotfound>
      <oldlinksvalidfor>365</oldlinksvalidfor>
    </cool2params>
    <cacheparams>0</cacheparams>
    
    <pagenotfound> ....
    </pagenotfound>
  </cache>

  <pagepath>
    <title>subtitle,nav_title,title</title>
    <saveto>id</saveto>
    <default>0</default>    
    <userfunc>tx_cooluri->getPageTitle</userfunc>
  </pagepath>
 
  <uriparts> .... 
  </uriparts>

  <predefinedparts> ....
  </predefinedparts>

  <valuemaps>
    <valuemap>
      <parameter>L</parameter>
      <value key="">0</value>
      <value key="en">1</value>
      <value key="ja">2</value>
      <value key="zh">3</value>
      <value key="ko">4</value>
    </valuemap>
  </valuemaps>
  
  <paramorder>
    <param>L</param>
  </paramorder>
  </cooluri>


As the language menu from the TS Setup may be a factor, too, here it
comes:


temp.langMenu = HMENU
temp.langMenu {
    wrap = <div class="languageMenu">|</div>
    special = language
    special.value = 0,1,2,3,4
    special.normalWhenNoLanguage = 0
    1 = TMENU
    1 {
             # Normal link:
      NO = 1
      NO.allWrap =
||&nbsp;&#124;&nbsp;||&nbsp;&#124;&nbsp;||&nbsp;&#124;&nbsp;||&nbsp;&#124;&nbsp;||&nbsp;&#124;&nbsp;||
      NO.wrapItemAndSub = <span class="link-no">|</span>
      NO.stdWrap.setCurrent = Deutsch || English || [asian] || [asian]
|| [asian]
      NO.stdWrap.current = 1

              # Present lang:
      ACT < .NO
      ACT = 1
      ACT.wrapItemAndSub = <span class="lang-cur">|</span>
      ACT.doNotLinkIt = 1

               # Lang. unavailable:
      USERDEF1 < .NO
      USERDEF1 = 1
      USERDEF1.doNotLinkIt = 1
      }
    }

Any ideas or hints for me?

TIA,
Axel


More information about the TYPO3-english mailing list