[TYPO3-dev] TCA and dynamic values based TS or TSconfig

Tomi Hrovatin tomi at tri-ex.si
Thu Mar 22 12:34:41 CET 2007


Hi again.

I solved the problem with this dirty hack in tca.php of tt_news extension:

		require_once PATH_t3lib.'class.t3lib_page.php';
		require_once PATH_t3lib.'class.t3lib_tstemplate.php';
		require_once PATH_t3lib.'class.t3lib_tsparser_ext.php';
	
	
		$sysPageObj = t3lib_div::makeInstance ('t3lib_pageSelect');
		$rootLine = $sysPageObj->getRootLine ($pageUid);
		
		$templateObj = t3lib_div::makeInstance('t3lib_tsparser_ext');
		$templateObj->tt_track = 0;
		$templateObj->init();
		$templateObj->runThroughTemplates ($rootLine);
		$templateObj->generateConfig();
	
		$imageFolder = 
$templateObj->setup['plugin.']['tx_myext.']['uploadfolder'];


regards,
T.

Tomi Hrovatin wrote:
> Nobody? Or is the question too stupid or maybe just unclear?
> 
> Tomi Hrovatin wrote:
>> And I forgot another thing.
>>
>> I don't want to hack the tt_news tca.php directly. How to avoid that? 
>> By placing the code in my tca.php, loadTCA("tt_news") and change 
>> upload folder?
>>
>> regards,
>>
> 

-- 
Tomi Hrovatin
-----------------------
Tri-ex d.o.o.
www.tri-ex.si
www.iPlantCare.com
www.flowerServant.com
www.indoor-plant-care.com
-----------------------




More information about the TYPO3-dev mailing list