[TYPO3-english] how to remove the trailing slash from url's
    Rupali 
    rupali.ffm at googlemail.com
       
    Tue Jan  6 12:35:04 CET 2009
    
    
  
- 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
>
    
    
More information about the TYPO3-english
mailing list