TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
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 05.10.2007, 21:59
Timothy Patterson
Gast
 
Beiträge: n/a
Standard [TYPO3] RealURL - allow the use of the ~ character?

Is there any way to allow RealURL to allow ~'s in the URL? Thanks!
_______________________________________________
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 05.10.2007, 22:39
Tomas Mrozek
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RealURL - allow the use of the ~ character?

> Is there any way to allow RealURL to allow ~'s in the URL?

I think the conversion is hardcoded in tx_realurl_advanced->encodeTitle
so you can...

a) (BAD) modify class.tx_realurl_advanced.php

b) (BETTER) create your own class that would extend the class
"tx_realurl_advanced" and modify only the function "encodeTitle". Then
set in localconf.php:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['pagePath']['userFunc']='path_to_your_file:&yourClass->main';

Tomas Mrozek
_______________________________________________
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 08.10.2007, 16:03
Timothy Patterson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RealURL - allow the use of the ~ character?

Are you sure that the only function I need to override is encodeTitle?
I have done so and I can manually assign the ~ character to a URL,
however when Typo3 generates a URL for a new page on its own the ~ gets
encoded and stored into the DB as a %7E

Any help on this issue would be greatly appreciated!!!

Tomas Mrozek wrote:
>> Is there any way to allow RealURL to allow ~'s in the URL?

>
> I think the conversion is hardcoded in tx_realurl_advanced->encodeTitle
> so you can...
>
> a) (BAD) modify class.tx_realurl_advanced.php
>
> b) (BETTER) create your own class that would extend the class
> "tx_realurl_advanced" and modify only the function "encodeTitle". Then
> set in localconf.php:
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['pagePath']['userFunc']='path_to_your_file:&yourClass->main';
>
>
> Tomas Mrozek

_______________________________________________
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 08.10.2007, 16:38
Tomas Mrozek
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RealURL - allow the use of the ~ character?

> Are you sure that the only function I need to override is
> encodeTitle?


No, I am not. I didn't check it thoroughly. I had only a quick look and
did a quick test.

> when Typo3 generates a URL for a new page on its own the ~ gets
> encoded and stored into the DB as a %7E


That's probably due to the last line in
tx_realurl_advanced->encodeTitle: return rawurlencode($processedTitle);

PHP manual:
----------
rawurlencode() - Returns a string in which all non-alphanumeric
characters except -_. have been replaced with a percent (%) sign
followed by two hex digits.

Tomas Mrozek
_______________________________________________
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!
 

Lesezeichen

Themen-Optionen
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] Using the pipe character in TSConfig James Corell typo3-english@lists.netfielders.de 3 05.04.2007 19:57
[TYPO3] Re: [Typo3] Greek Character support alex typo3-english@lists.netfielders.de 0 12.03.2007 20:14
[TYPO3] change colon in title to different character Henjo Hoeksma typo3-english@lists.netfielders.de 0 02.02.2007 20:52
[TYPO3] realUrl - alias instead of realUrl Camilla typo3-english@lists.netfielders.de 6 29.01.2007 15:25
[TYPO3-templavoila] character before Link (made in rte) Tom Walter typo3-project-templavoila@lists.netfielders.de 3 19.01.2007 07:11


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:05 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

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 75