[TYPO3-templavoila] Get TV Content
Freddy Tripold
freddy.tripold at tlog.at
Wed Apr 3 20:45:23 CEST 2013
Hi Kay,
thank you, it was quite simple!
If someone is interested....
public function displayTemplaVoilaContent($content, $conf) {
//Enable stdWrap for userFunc params
$page_id = $this->cObj->stdWrap($conf['page_id'], $conf['page_id.']);
$field_name = $this->cObj->stdWrap($conf['field_name'],
$conf['field_name.']);
$row = NULL;
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages', 'deleted=0
AND hidden=0 AND uid=' . intval($page_id), '', '', 1);
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
$row_overlay = NULL;
if($GLOBALS['TSFE']->sys_language_content) {
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*',
'pages_language_overlay', 'deleted=0 AND hidden=0 AND pid=' .
intval($page_id) . ' AND sys_language_uid=' .
$GLOBALS['TSFE']->sys_language_content, '', '', 1);
$row_overlay = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
$row = array_merge($row, $row_overlay);
}
//Convert TemplaVoilas XML to array
$tv_flex_config = t3lib_div::xml2array($row['tx_templavoila_flex']);
//Get the contents
.......
......
--
Freddy Tripold
http://www.tlog.at
"When you discover that you are riding a dead horse, the best strategy
is to dismount."
(The tribal wisdom of the Dakota Indians)
More information about the TYPO3-project-templavoila
mailing list