[TYPO3-english] how to remove the trailing slash from url's

Rupali rupali.ffm at googlemail.com
Thu Jan 8 13:25:42 CET 2009


well ,
this is correct:
$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
= PATH_typo3conf . 'class.ux_tx_realurl.php';

2009/1/8 Rupali <rupali.ffm at googlemail.com>

> need one more help. i dont know how to pass the path.
>
> if i also use XCLASS instead of hook, how do i provide the path?
> i wrote the code in 'class_ux_tx_realurl.php' which is in the same
> directory
> as ext_localconf.php.
> how do i provide path to my 'class_ux_tx_realurl.php' file?
>
> e.g i want this:
>
>
> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
> =  'class_ux_tx_realurl.php';
>
> so should it be:
>
> *
>
> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
> **= PATH_typo3conf . 'class.ux_tx_realurl.php';*
> *or,*
> *
>
>
> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl_advanced.php']
>
>
>  = t3lib_extMgm::extPath('') . 'class.ux_tx_realurl_advanced.php';
>
> *
> Thanks,
> Rupali
> 2009/1/6 Xavier Perseguers <typo3 at perseguers.ch>
>
>  > HI,
> >
> > Rupali wrote:
> > > 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.
> >
> > The code I provided uses XCLASS and as such should simply be defined with
> >
> >
> $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
> > = 'path/to/your/file';
> >
> > IIRC, I used XCLASS instead of a hook as I had to process the parameters
> > before encoding it and not at the end of encodeSpURL.
> >
> >
> > --
> >  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