[TYPO3-mvc] Re: Typo3 6 Extension: get page resources Media

Oliver Beck obeck at biznet.ch
Fri Feb 1 13:16:01 CET 2013


Hi Dorian,

Try this out. but i'm not sure, whether that works in typo3 6

$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages', 'pid='.$GLOBALS["TSFE"]->id);
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)){
$markerArray[] = array('uid' => $row['uid'], 'title' => $row['title']);
// Page Resource Bild auslesen
// iterate all media's
foreach($rowas $media) {
   $images[] = "/uploads/media/" . $media;
}
}
$this->view->assign('teaser', $markerArray);
$this->view->assign('teaser1', $landingPages);
}


More information about the TYPO3-project-typo3v4mvc mailing list