TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] cooluri & language detection

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 ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 21.08.2008, 20:15
Freddy Tripold
Gast
 
Beiträge: n/a
Standard [TYPO3] cooluri & language detection

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 21.08.2008, 20:47
Jan Bednarik
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] cooluri & language detection

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 21.08.2008, 21:35
Freddy Tripold
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] cooluri & language detection

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 22.08.2008, 09:42
Frank Hüttner
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] cooluri & language detection

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 22.08.2008, 09:50
Lars Haendler
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] cooluri & language detection

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 22.08.2008, 11:55
Freddy Tripold
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] cooluri & language detection

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 23.08.2008, 11:52
Jan Bednarik
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] cooluri & language detection

> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:16 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74