[TYPO3-english] CoolUri + localized page path (was: RealUrl + localized page path)

Joe Berger joeberger at gmx.de
Sun Mar 15 13:56:09 CET 2009


Hi Jan,

thanks for your answer. 

I uninstalled CoolUri, deleted the two tables, reinstalled the extension,
created the required tables and then set the language variable, cleared all
caches, cleaned the localconf form all realurl extensions, but still got the
same problem. Everything is tranlated, only the links have the structure:
http://www.hfm-wuerzburg.de/en/veranstaltungen.html

I use TYPO3 4.2.6, CoolUri 1.1.5, in my .htaccess I've used the lines from
CoolUri-Tutorial (http://docs.google.com/View?docid=dd33gg45_3f8j96p)

In my root template I've writtten:


# Konfiguration der Sprachen
 ###############################################
 #Standardsprache Deutsch UID =0
 config.linkVars = L
 config.uniqueLinkVars = 1
 config.sys_language_uid = 0
 config.language = de
 config.locale_all = de_DE.UTF8
 #Damit auch der Content richtig angezeigt wird in der Seitensprache
 config.sys_language_overlay = 1



[globalVar = GP:L = 1]
 #englisch
 config.sys_language_uid = 2
 config.language = en
 config.locale_all = en_EN.UTF8
[global]


# Cooluri
config.simulateStaticDocuments = 0
config.baseURL = http://www.hfm-wuerzburg.de/ 
config.tx_cooluri_enable = 1
config.redirectOldLinksToNew = 1


And this is my CoolUriConf.xml

<?xml version="1.0" encoding="utf-8"?>
<cooluri>
 <urlsuffix>.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>
      <status>HTTP/1.0 404 Not Found</status>
      <behavior type="message"><![CDATA[ <h1>Page not found!</h1>
]]></behavior>
    </pagenotfound>
  </cache>

  <pagepath>
    <title>tx_realurl_pathsegment,alias,subtitle,title</title>
    <saveto>id</saveto>
    <default>0</default>    
    <userfunc>tx_cooluri->getPageTitle</userfunc>
    <t3conv>1</t3conv>
  </pagepath>
 
  <uriparts>
	<part>
      		<parameter>tx_ttnews[tt_news]</parameter>
	      <lookindb>
  		      <to>SELECT title FROM tt_news WHERE uid=$1</to>
       		 <!-- if you have news items in different languages in one folder,
use this sql -->
		        <!-- to>SELECT title FROM tt_news WHERE (uid=$1 or l18n_parent=$1)
AND sys_language_uid={L=0}</to -->
       		 <translatetoif>
	       		   <match>^[0-9]+$</match>
	       	 </translatetoif>
		        <t3conv>1</t3conv>
	      </lookindb>
	</part>
	<part>
      		<parameter>cHash</parameter>
	</part>
	<part key="page([0-9]+)" regexp="1">
		<parameter>tx_ttnews[pointer]</parameter>
	</part>

	<part>
      		<parameter>tx_eeblog[showUid]</parameter>
      		<lookindb>
        		<to>SELECT subject FROM tx_eeblog_maintable WHERE uid=$1</to>
        		<translatetoif>
          			<match>^[0-9]+$</match>
        		</translatetoif>
        		<t3conv>1</t3conv>
      		</lookindb>
    	</part>
	<part>
		<parameter>tx_cal_controller[gettime]</parameter>
	</part>
	<part>
		<parameter>tx_cal_controller[preview]</parameter>
	</part>
	<part>
		<parameter>tx_cal_controller[getdate]</parameter>
	</part>
	<part>
		<parameter>tx_cal_controller[page_id]</parameter>
	</part>
	<part>
		<parameter>tx_cal_controller[category]</parameter>
		<lookindb>
			<to>SELECT title FROM tx_cal_category WHERE uid=$1</to>
			<translatetoif>
				<match>^[0-9]+$</match>
			</translatetoif>
			<urlize>1</urlize>
		</lookindb>
	</part>
	<part>
		<parameter>tx_cal_controller[uid]</parameter>
		<lookindb>
		<to>SELECT title FROM tx_cal_event WHERE uid=$1</to>
		<translatetoif>
		<match>^[0-9]+$</match>
		</translatetoif>
		<urlize>1</urlize>
		</lookindb>
	</part>

  </uriparts>
    
  <predefinedparts>
	<part>
		<parameter>tx_ttnews[backPid]</parameter>
	</part>
	<part>
		<parameter>cHash</parameter>
	</part>
	<part>
		<parameter>tx_eeblog[pointer]</parameter>
	</part>
		<part>
		<parameter>tx_eeblog[backPID]</parameter>
	</part>
	<part>
      		<parameter>no_cache</parameter>
	</part>
	<part>
		<parameter>tx_cal_controller[location]</parameter>
	</part>

	<part>
		<parameter>tx_cal_controller[view]</parameter>
	</part>

	<part>
		<parameter>tx_cal_controller[lastview]</parameter>
	</part>	
	<part>
		<parameter>tx_cal_controller[type]</parameter>
	</part>

</predefinedparts>
  
  <valuemaps>
    <valuemap>
      <parameter>L</parameter>
      <value key="">0</value>
      <value key="en">1</value>
    </valuemap>
  </valuemaps>
  
  <paramorder>
    <param>L</param>
  </paramorder>
  
</cooluri>



Kind regards and thanks for the great extension :-)
Joe




>>> Jan Bednarik<info at bednarik.org> schrieb am 13.03.2009 um 22:44:
> Hi,
> 
>> I use TYPO3 4.2.6 und cooluri and still have the problem:
> 
> this could be cause by wrong configuration. When you install the 
> extension you have to at first create the required tables and then set 
> up some options (as what language variable is used). This issue happens 
> when you don't click "Update" in the second step. Then the language 
> variable is not set and you have a problem.
> 
> Note for me: I could set a default value to L in the next version...
 


More information about the TYPO3-english mailing list