---
title: "Content Rendering"
url: "https://www.typo3.net/d/24265-content-rendering"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2005-04-29"
last_reply: "2005-04-29"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Content Rendering

Allgemein · 3 Antworten · gestartet 2005-04-29

## Eröffnungsbeitrag

**chacho** · 2005-04-29 · [Beitrag #1](https://www.typo3.net/d/24265-content-rendering/1)

Hallo,
das ist mein index.php:

```php
<?php	
if (!is_object($TSFE))    
{
	die("You cannot execute this file directly. It's meant to be included from index_ts.php");
}

ob_start();

// get path to root
$path = $TSFE->sys_page->getRootLine($TSFE->page['uid']);
// get root children
$menu = $TSFE->sys_page->getMenu($path[0]['uid']);
while(list($key, $val) = each($menu))
{
	echo '<a href=index.php?id=' . $val['uid'] . '>' . $val['subtitle'] . '</a><br />';
	// get current children
	$smenu = $TSFE->sys_page->getMenu($val['uid']);
	while(list($skey, $sval) = each($smenu))
	{
		echo '&nbsp;&nbsp;&nbsp;&nbsp;<a href=index.php?id=' . $sval['uid'] . '>' . $sval['subtitle'] . '</a><br />';
	}
}

?>

<?php	$GLOBALS["TSFE"]->content = ob_get_clean(); ?>
```

Wie kriege ich jetzt der Inhalt (Texte, Bilder usw.) mit PHP?

Vielen Dank,
chacho

p.s.: my german is bad. that's why i'm trying to keep it short

## Antworten

### [#2](https://www.typo3.net/d/24265-content-rendering/2) · laptop24 · 2005-04-29

Das ist viel zu wenig Information! Was ist das Problem?

(This is way to little information! What is the problem?)

### [#3](https://www.typo3.net/d/24265-content-rendering/3) · Jörg Roth · 2005-04-29

Hi chacho,

you should install the extension [Extension Development Evaluator](http://typo3.org/man_uk/extensions/repository/search/extdeveval/). With it you'll get all documentation about classes and functions.

On the top frame you'll see a new link nav after installation.

Regards,

J

### [#4](https://www.typo3.net/d/24265-content-rendering/4) · chacho · 2005-04-29

@laptop24: i just wanna be able to get all page content with php. some function that returns all content in an array or something, so that i can render it as i wish. i know i could do that with typoscript, but i dont have the time for it right now

@Jörg: thanx a lot, this sure is going to help :)

---

Quelle: „Content Rendering“, typo3.net, https://www.typo3.net/d/24265-content-rendering
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
