Hallo,
ich möchte einen typolink im ajax request erstellen:
So sieht mein Link normalerweise aus:
$this->pi_linkTP($title,array("cat_id" => $this->catId, "bottomlevel" => true),1,$this->productsPageId)
So sieht der Kopf der php file aus:
include_once(PATH_site.'typo3/sysext/cms/tslib/class.tslib_content.php');
if (!defined ('PATH_typo3conf')) die ('Could not access this script directly!');
// Initialize FE user object:
$feUserObj = tslib_eidtools::initFeUser();
// Connect to database:
tslib_eidtools::connectDB();
Zugriff auf Datenbank und bspw.t3lib_div::_GET('value') habe ich. Das mit eid hat also funktioniert...
Nun scheitere ich aber am erstellen eines Links.
Ich habe es versucht, wie hier geschrieben: http://www.sk-typo3.de/Typolinks-in-PHP-Script.141.0.html
$cObj=t3lib_div::makeInstance('tslib_cObj');
echo $cObj-getTypoLink('$title',$this->productsPageId);
Bekomme den Fehler:
Fatal error: Call to a member function getPage_noCheck() on a non-object ...typo3/sysext/cms/tslib/class.tslib_content.php on line 5200
Kann mir hier jemand weiterhelfen?
Grüße
Tob1