[TYPO3] Solved : Create menus using data from table tt_news

Sander van Gelderen mail at NOSPsandervangelderen.nl
Wed Jan 31 10:44:59 CET 2007


I solved it, perhaps it can be of use to others:

> 
> 
> These are remaining problems for me:
> 
> 1) I want the url's to follow realurl configuration, is function 
> pi_RTEcssText($str) in tslib/class.tslib_pibase.php good for doing this 
> with? How could I call such a function from my userfunction?

No need to consider realurl at all, makes no differance for obtaing 
parametrs. Use $param_val = t3lib_div::_GET('param_name');

$row['_OVERRIDE_HREF'] = 
$this->cObj->getTypoLink_URL($page_id,$urlParameters);

> 
> 2) I need to set 'ITEM_STATE' => 'ACT' for the appropriate row. How can 
> I check this in my userfunction? depending on the use of realurl or not, 
> I need the selected article's id from getParam or some other way.
> 
  $row['ITEM_STATE'] = 'NO';
  if ($artid==$row['uid']) {
         $row['ITEM_STATE'] = 'ACT';
  }


More information about the TYPO3-english mailing list