[TYPO3-mvc] Typo3 6 Extension: get page resources Media
Dorian
dk at digitalwerk.at
Fri Feb 1 10:58:06 CET 2013
Hello,
does anybody know how to get the Pics uploaded at Page -> Resoources -> Media?
I'm looping through all subpages of the current site and want to display a teaser picture, which is uploaded at the page resources...
public function listAction() {
$landingPages = $this->landingPageRepository->findAll();
$markerArray = array();
$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
}
$this->view->assign('teaser', $markerArray);
$this->view->assign('teaser1', $landingPages);
}
Thank you :)
More information about the TYPO3-project-typo3v4mvc
mailing list