[TYPO3] RealURL : moving language part to 2nd position
G.Unger
skyfreak1 at gmx.net
Thu Aug 21 23:19:08 CEST 2008
hi xavier
may I knidly aks if you have already developed a working solution for
moving the language part to the 2nd position, and if so would you share
it with some comments on how o use/install it?
thx and rgds
GUIDO
On 2008-06-24 18:51:59 +0200, Xavier Perseguers <typo3 at perseguers.ch> said:
> Hi!
>
>> No, wrong XCLASS call. You never specify XLCASS directly, you only
>> define it and declare it in your ext_localconf.php as:
>>
>> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl_advanced.php']
>> = t3lib_extMgm::extPath('yourext') . 'class.ux_tx_realurl_advanced.php';
>>
>> TYPO3 will do the rest.
>>
>> But you need to XCLASS another class actually ;) tx_realurl_advanced
>> receives a path with all pre/post vars stripped. You need to XCLASS
>> main class.
>
> OK thanks. I tested it in the train and got it, at least first part :-)
>
> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
> = PATH_typo3conf . 'class.ux_tx_realurl.php';
>
> <?php
> class ux_tx_realurl extends tx_realurl {
> function encodeSpURL(&$params, &$ref) {
> parent::encodeSpURL($params, $ref);
> echo 'encode:';
> debug($params['LD']['totalURL']);
> }
>
> function decodeSpURL($params, &$ref) {
> echo 'decode:';
> debug($params['LD']['totalURL']);
> parent::decodeSpURL($params, $ref);
> }
> }
> ?>
>
> I just have to play with totalURL as I see...
>
> BTW, do you have a config hint to force RealURL to prepend the language
> prefix when it is not present (= default language)? I'll need this
> feature and if it is not possible then I'll have to do it in my XCLASS
> but it seems that I would then have to modify a few arrays...
More information about the TYPO3-english
mailing list