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...
--
Xavier Perseguers
http://xavier.perseguers.ch/en
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english