Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] cooluri & language detection within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi, I am trying to using cooluri with rlmp_language_detection. All works fine except the first call of the startpage in ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi,
I am trying to using cooluri with rlmp_language_detection. All works fine except the first call of the startpage in the default language. The language detection tries to forward to /index.php?id=xy&L=0 and the ..htaccess will rewrite to site.html. So the call ends with an error. I think this is normal in cause of the configuration of the extensions. My solution was to put in the xml conf <valuemap> <parameter>L</parameter> <value key="de">0</value> <value key="en">1</value> </valuemap> now the Url in the default language is like this www.domain.tld/de/home.html, but it should be without the language parameters. As seen on cooluri tutorial, one of the cooluri example sites (www.sunisa-ranck.com). So is it possible to remove the default language part from Url or are there other ways to make a language detection wich works better? br Freddy _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi,
> I am trying to using cooluri with rlmp_language_detection. All works > fine except the first call of the startpage in the default language. The > language detection tries to forward to /index.php?id=xy&L=0 and the why the L=0? Why not just id=XY? > .htaccess will rewrite to site.html. So the call ends with an error. why .htaccess? Why not redirect directly to site.html? Or you could use CoolUri to do so by "redirectOldLinksToNew" What error? Page 404? Is "site.html" in the link cache? Why don't you redirect to root? > <value key="de">0</value> This means L == 0 -> put /de into a URL. > So is it possible to remove the default language part from Url or are > there other ways to make a language detection wich works better? Use empty "key" attribute. -- Jan Bednarik www.bednarik.org - web about Typo3 in czech _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Hi Jan,
Jan Bednarik schrieb: > Hi, > > why the L=0? Why not just id=XY? because the extensions rlmp_language_detection redirects to the page with L=0, so I could try to modify language detection or maybe a tricky conf in Cooluri > > > What error? Page 404? No, I get an endless redirect. Is "site.html" in the link cache? Why don't you > redirect to root? Good Idea, why I did not that? That's the solution, I set id=xy&L=0 to home an set the sticky option. Thanks for the hint. br Freddy _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Hi Freddy,
i have the same problem. Please can you post your configuration (.htaccess, CoolUriConf.xml and CoolURI-Backend). Regards Frank Freddy Tripold schrieb: > Hi Jan, > > > Jan Bednarik schrieb: >> Hi, >> > > why the L=0? Why not just id=XY? > because the extensions rlmp_language_detection redirects to the page > with L=0, so I could try to modify language detection or maybe a tricky > conf in Cooluri >> >> >> What error? Page 404? > No, I get an endless redirect. > Is "site.html" in the link cache? Why don't you >> redirect to root? > Good Idea, why I did not that? > That's the solution, I set id=xy&L=0 to home an set the sticky option. > Thanks for the hint. > > br > Freddy _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Hi
Freddy Tripold wrote: > Hi, > > I am trying to using cooluri with rlmp_language_detection. All works > fine except the first call of the startpage in the default language. The > language detection tries to forward to /index.php?id=xy&L=0 and the > .htaccess will rewrite to site.html. So the call ends with an error. > I think this is normal in cause of the configuration of the extensions. > My solution was to put in the xml conf > <valuemap> > <parameter>L</parameter> > <value key="de">0</value> > <value key="en">1</value> > </valuemap> > now the Url in the default language is like this > www.domain.tld/de/home.html, but it should be without the language > parameters. As seen on cooluri tutorial, one of the cooluri example > sites (www.sunisa-ranck.com). > So is it possible to remove the default language part from Url or are > there other ways to make a language detection wich works better? > > br > Freddy you are my personal hero. I always had the problem the other way around, with no real solution and therefore switched to realurl. Your problem is the rlmp_language_detection because normally L=0 won't be added to your query and cooluri won't add /de/. Best way would be to check the rlmp_language_detection configuration. - If there is no way, then fix it directly in the rlmp_language_detection source. Regards Lars _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
Frank Hüttner schrieb:
> Hi Freddy, > > i have the same problem. Please can you post your configuration > (.htaccess, CoolUriConf.xml and CoolURI-Backend). > > Regards > Frank > Hi Frank, the .htaccess is the standard one which comes with Typo3. Install rlmp_language_detection and cooluri, call your homepage, should be something like index.php?id=3&L=0 because of the language detection. Go to cooluri Backend --> New Link --> set Uri to the title or alias or whatever you have choosen f.e. home --> set Parameters to id=xy&L=0 and set sticky --> save. Now set config.tx_cooluri_enable = 1, clear Cache and reload Homepage. The second problem with language detection are all the other sites. It is possible to open sites through the menu, but not direct f.e. from google. So I activated rlmp_language_detection only for the homepage, because I think it make no sense, to redirect user, who comes from search engines. I know this is not the best solution but it works. br Freddy <?xml version="1.0" encoding="utf-8"?> <cooluri> <cooluris>1</cooluris> <urlsuffix>.html</urlsuffix> <removetrailingslash>1</removetrailingslash> <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 or l18n_parent=$1) AND sys_language_uid={L=0}</to> <t3conv>1</t3conv> </lookindb> </part> <part> <parameter>tx_ttnews[pointer]</parameter> </part> <part> <parameter>tx_ttnews[calendarYear]</parameter> </part> <part> <parameter>tx_ttnews[calendarMonth]</parameter> </part> <part> <parameter>tx_ttnews[cat]</parameter> </part> </uriparts> <predefinedparts> <part> <parameter>cHash</parameter> </part> <part> <parameter>no_cache</parameter> </part> <part> <parameter>tx_ttnews[backPid]</parameter> </part> <part key="druck" regexp="1"> <parameter>print</parameter> </part> </predefinedparts> <valuemaps> <valuemap> <parameter>L</parameter> <value key="">0</value> <value key="en">1</value> </valuemap> </valuemaps> <paramorder> <param>L</param> </paramorder> <partorder> <part>valuemaps</part> <part>pagepath</part> <part>uriparts</part> <part>predefinedparts</part> </partorder> </cooluri> _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
> Best way would be to check the rlmp_language_detection configuration. -
> If there is no way, then fix it directly in the rlmp_language_detection > source. I would do that This line should be changed to typolink $linkData = $TSFE->tmpl->linkData($page,'',0,'',array(),'&L='.$preferredLa nguageOrPageUid); to $linkData = $this->cObj->typolink_URL(Array('parameter'=>$page,'additional Params'=>'&L='.$preferredLanguageOrPageUid); this would generate "cool" URL and no additional redirect would be required. Regards -- Jan Bednarik www.bednarik.org - web about Typo3 in czech _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] language detection doesn't work anymore | Frank Sonck | typo3-english@lists.netfielders.de | 0 | 14.08.2008 16:10 |
| [TYPO3-german] language detection extension | Florian Schmidt | typo3-german@lists.netfielders.de | 6 | 21.03.2008 16:08 |
| [TYPO3-german] Language Detection | Markus Deckmann | typo3-german@lists.netfielders.de | 8 | 27.02.2008 09:17 |
| Re: [TYPO3-german] Language Detection | Joachim Streit | typo3-german@lists.netfielders.de | 0 | 22.02.2008 11:53 |
| [TYPO3-german] Language Detection funktioniert nicht richtig | Xaver Reichart | typo3-german@lists.netfielders.de | 1 | 20.03.2007 16:29 |