[TYPO3-english] how to remove the trailing slash from url's
Rupali
rupali.ffm at googlemail.com
Tue Jan 6 12:51:10 CET 2009
i presume that i have to add a new file named class.ux_tx_realurl.php, write
the code there and then adjust the path in ext_localconf.php.
but how should this code line in ext_localconf.php look:
an example :
// Must use '&" with tcemain hook!!! Important for proper work of the hook.
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_realurl']
= 'EXT:realurl/class.tx_realurl_tcemain.php:&tx_realurl_tcemain';
pls suggest.
2009/1/6 Rupali <rupali.ffm at googlemail.com>
> - is it this? then where should i write it?
> <?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);
> }
> }
> ?>
>
> - and how do i extend tx_realurl, in ext_localconf.php ?
> like :
>
> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
> = 'class.ux_tx_realurl.php';
> *Regards,*
> *Rupali*
>
>
> 2009/1/6 Xavier Perseguers <typo3 at perseguers.ch>
>
> > Hi,
> >
> > > I could only find the hook 'encodeSpURL_postProc'
> > > http://bugs.typo3.org/view.php?id=9976<
> > http://bugs.typo3.org/view.php?id=9976>
> > > **
> > > Where do i find the second hook ('decodeSpURL_preProc') ?
> >
> > class ux_tx_realurl extends tx_realurl {
> >
> > function encodeSpURL(&$params, &$ref) {
> >
> > // Do something...
> >
> > // Encode the URL
> > parent::encodeSpURL($params, $ref);
> > }
> >
> > function decodeSpURL($params, &$ref) {
> > parent::decodeSpURL($params, $ref);
> > }
> >
> > }
> >
> > --
> > Xavier Perseguers
> > http://xavier.perseguers.ch/en/tutorials/typo3.html
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list