|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
> 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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
> 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 |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| 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 |