---
title: "typoLink_URL in tcemainprocdm"
url: "https://www.typo3.net/d/106269-typolink-url-in-tcemainprocdm"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Frage","Links","PHP"]
created: "2011-07-12"
last_reply: "2011-07-12"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# typoLink_URL in tcemainprocdm

Extensions › Entwicklung · 0 Antworten · gestartet 2011-07-12

## Eröffnungsbeitrag

**rrudorfer** · 2011-07-12 · [Beitrag #1](https://www.typo3.net/d/106269-typolink-url-in-tcemainprocdm/1)

Hi Forum!

Ich würde gerne die Funktion typoLink_URL in einer tcemainprocdm-Klasse aufrufen, bevor ein Datensatz im BE gespeichert wird... Bisher bin ich gescheitert... :(

Bisherige Versuche:
- ein lokales cObj erzeugen

```php
include_once(PATH_site.'typo3/sysext/cms/tslib/class.tslib_content.php');
$cObj = t3lib_div::makeInstance('tslib_cObj');
```

- wie bei einer eID-Anwendung alles einbinden

```php
$this->feUserObject = tslib_eidtools::initFeUser();
$this->TSFEObject = tslib_eidtools::getTSFE();

require_once(PATH_t3lib . 'class.t3lib_page.php');
require_once(PATH_tslib . 'class.tslib_pibase.php');
require_once(PATH_tslib . 'class.tslib_content.php');
require_once(PATH_t3lib . 'class.t3lib_stdgraphic.php');
require_once(PATH_tslib . 'class.tslib_gifbuilder.php');

$temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
$GLOBALS['TSFE'] = new $temp_TSFEclassName($TYPO3_CONF_VARS, $page, 0, true);
$GLOBALS['TSFE']->tmpl = t3lib_div::makeInstance('t3lib_tstemplate');
$GLOBALS['TSFE']->tmpl->init();
$GLOBALS['TSFE']->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
$GLOBALS['TSFE']->rootLine = $GLOBALS['TSFE']->sys_page->getRootLine(intval(144));
$GLOBALS['TSFE']->getConfigArray();
		
$this->cObj = new tslib_cObj();
```

**Fehler:**
Call to a member function push() on a non-object in [...]/typo3/sysext/cms/tslib/class.tslib_fe.php on line 2053

Hat jemand eine Idee wie man hier die Typolink-Funktionen nutzen kann?

Ciao,
Roman

---

Quelle: „typoLink_URL in tcemainprocdm“, typo3.net, https://www.typo3.net/d/106269-typolink-url-in-tcemainprocdm
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
