[TYPO3-english] strange results after upload

Jigal van Hemert jigal at xs4all.nl
Tue Nov 9 21:04:13 CET 2010


Hi,

On 9-11-2010 20:40, Santiago wrote:
> 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 is defined as :
substituteMarkerArray($content, array $markContentArray, $wrap = '', 
$uppercase = FALSE, $deleteUnused = FALSE)

You use it with:
$content : $template ; OK, the template which contains the markers
$markContentArray : $markerArray ; OK, the list of markers
$wrap : array() ; This will end up as second parameter of explode(), no 
idea how this influences the result
$uppercase : array() ; This will evaluate as FALSE
$deleteUnused : FALSE (default)

Maybe you could try it with proper parameter values (or leave them to 
the defaults if these are suitable)?

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


-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-english mailing list