[TYPO3-dev] Cookie bridge between frontend page id and BE module
Tapio Markula
tapio.markula at xetpoint.fi
Sat Nov 15 09:23:01 CET 2008
Hi
When something has been defined inside be plugin folder,
there is no connection to $GLOBALS['TSFE'].
Especially $GLOBALS['TSFE']->id would be needed.
Uid of the page would be needed to get uid of the page for this function
t3lib_BEfunc::getPagesTSconfig($pageId);
Cookie could create a suitable "bridge" - cookie bridge could get the
correct uid getting the page TS config.
It would store uid of pages, when editing content using some Web module
(at least needed basic modules like Web > Page and Web > List).
Then inside RTE would use RTE templates, which could do almost anything
on the base both $GLOBALS['BE_USER'] data and page TS Config.
http://forge.typo3.org/issues/show/2189
and extra example
$res=$GLOBALS['TYPO3_DB']->exec_SELECTquery(
'tt_address.name',
'tt_address',
'pid=949',
'',
''
);
while ($address = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$content .= $address['name'].'<br />';
}
could use $pageTSConfig
$res=$GLOBALS['TYPO3_DB']->exec_SELECTquery(
'tt_address.name',
'tt_address',
'pid='.$pageTSConfig['xxx.']['xxx'].'',
'',
''
);
while ($address = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$content .= $address['name'].'<br />';
}
That could render list of addresses in the current page of defined page.
More information about the TYPO3-dev
mailing list