[TYPO3-english] strange results after upload

Santiago santi013 at arcor.de
Tue Nov 9 20:40:34 CET 2010


Hello,

thank you very much for your attention!

On 9-11-2010 19:33:18 Jigal van Hemert wrote:
> On 9-11-2010 17:03, Santiago wrote:
> > The failing call is cObj->substituteMarkerArray ...
> 
> In your original post you said that only the image was replace and other
> text markers were not touched.
> Do you mean that you use the option to delete unused markers and that
> this doesn't work in tslib_content::substituteMarkerArray() ?

Not by intention - if ever, by mistake or misunderstanding.

> ... , but maybe you can test if it fixes your problem:

No, it did not fix the problem. Your fix is good, although I think, that hyphen 
or curly brackets will be rarely used inside markernames.

I post you the php-function:

function detailView($thumbWidth) {
   $subpart=$this->cObj->getSubpart($this->detailTemplate, 
'###DETAILVIEW###');
   $record=$this->pi_getRecord('tx_rmaevents_b0',$this->piVars['event']);

   $markerArray['###HEADER###']=$record['etitle'];
   $markerArray['###SUBTITLE###']=$record['esubtitle'];
   $markerArray['###DURATION###']=$this->getDuration($record);
   $markerArray['###LOCATION###']=$this->pi_getLL('elocation.I.'.
$record['elocation']);
   $template=$this->genFirstImage($subpart,$record,'###TOPIMAGE###',$this-
>DThumbWidth);
   $markerArray['###DESCRIPTION###']=$this->pi_RTEcssText($record['edesc']);
   $markerArray['###BACKLINK###']=$this->pi_linkToPage($this-
>pi_getLL('back'), $this->id);
   $markerArray['###IMAGELIST###']=$this->genDetailImages($this-
>detailTemplate,$record,$this->DThumbWidth);

   return $this->cObj->substituteMarkerArray($template,
$markerArray,array(),array());
}

The function "genFirstImage" works on subparts and uses cObj-
>substituteMarkerArrayCached and cObj->substituteSubpart and is the only part 
of the template, that gets replaced.

The listview, which processes the same template file does not use 
substituteMarkerArray but substituteMarkerArrayCached - which apparently works 
fine.

kind regards

Santiago


More information about the TYPO3-english mailing list