[Typo3-dev] BUG in Shop missing id key in URL

Marco Schrieck mschrieck at detailgetreu.de
Tue Jul 15 13:34:34 CEST 2003


tt_products/pi/class.tx_ttproducts.php

The function getLinkUrl return a link like "index.php?123&...". 
I get always a message like 
 "Wrong parameters, GET/POST var 'tt_products' was missing"

It would be better to add a "id=" "index.php?id=123&..." also the
index.php is hard coded.

Maybe there you should be add some extras things like described in and
using the getTypoLink_URL function:
http://typo3.org/1422+M56a36b07b62.0.html
http://typo3.org/1422+M5f412c39445.0.html


ciao

Marco


-------------

function getLinkUrl($id="",$excludeList="")     {
  $queryString=array();
  $queryString["id"] = ($id ? $id : $GLOBALS["TSFE"]->id); 
  //...

return $GLOBALS["TSFE"]->absRefPrefix.'index.php?' 
           .implode($queryString,"&");
}

-------------

function getLinkUrl($id="",$excludeList="")     {
  $queryString=array();
  // add id=
  $queryString["id"] = 'id='.($id ? $id : $GLOBALS["TSFE"]->id);

  //...

  // use / instead of index.php 

return $GLOBALS["TSFE"]->absRefPrefix.'/?' 
           .implode($queryString,"&");
}

_________________________________________________ 

Marco Schrieck
detailgetreu GmbH    Fon: (+49) 0941/58433-0
Domplatz 3           Fax: (+49) 0941/58433-33
D-93047 Regensburg   http://www.detailgetreu.de






More information about the TYPO3-dev mailing list