[TYPO3-templavoila] Drag n Drop

Tapio Markula tapio.markula at atwebteam.com
Tue Apr 24 09:08:12 CEST 2007


Nikolas Hagelstein
> 
> Please report any issue to bugs.typo3.org

It has one rendering problem because it adds generating
new and paste icons into the function
'render_framework_singleSheet'
That function render both page and content related information
so that the outhermost table renders page information and
nested table content related information.

That function needs an additional parameter, for example $recType,
to tell, which record type it renders.
That parameter would also make skinning easier because
it would allow to set different classes for the outher and
inner tables.

function render_framework_singleSheet($contentTreeArr, $languageKey, 
$sheet, $parentPointer=array(), $parentDsMeta=array().$recType='content') {
...


// set different classes for each table level (XXX = some reasonable 
part of class name)

		if($recType=='page')
			$typo3_XXX=' typo3-XXXPage';
		elseif($recType=='content') 	
			$typo3_XXX=' typo3-XXXContent';
		elseif($recType=='subContent') 	
			$typo3_XXX=' typo3-XXXContent typo3-XXXSubContent';
		$finalContent='';
		
		$finalContent .= '
		<table cellpadding="0" cellspacing="0" class="typo3-XXX'.$typo3_XXX.'">';
		
// not render new and paste icons for the outhermost table
if (!$this->translatorMode && $recType!='pages')	{
...

Need corresponding new parameter also into
function render_framework_allSheets($contentTreeArr, $languageKey='DEF', 
$parentPointer=array(), $parentDsMeta=array(),$recType='content')

because that is used to generate both outher and inner tables

table 'page' related function call

$output.= $this->render_framework_allSheets($contentTreeData['tree'], 
$this->currentLanguageKey,$array,$array,'page');


More information about the TYPO3-project-templavoila mailing list