Hi all,
ich bin scheinbar zu doof und bekomme es nicht zum laufen.
Ich habe eine Extension, welche auf ein Template zugreift. Ein Teil der Marker soll verlinkt werden (ähnlich wie bei tt_news).
Hier mein Template:
<!-- ###LISTVIEW### begin -->
###MODE_SELECTOR### <div class="ensemble_body">###pi_list_Prequel###
<!-- ###CONTENT### -->
<!-- ###ITEM### -->
<!--###LINK_ITEM###-->###VORNAME### ###NACHNAME###<!--###LINK_ITEM###-->
<!-- ###ITEM### -->
<!-- ###CONTENT### -->
</div>
<!-- ###LISTVIEW### end -->
Ganz simpel.
Jetzt möchte ich, dass Vorname und Nachname verlinkt wird, aber ich bekomme es einfach nicht hin, dass der Link erstellt wird. :/
Hier mein Quelltext:
function makelist($res) {
$items=array();
# Get the template
$this->templateCode = $this->cObj->fileResource($this->conf['templateFile']);
# Get the parts out of the template
$template['total'] = $this->cObj->getSubpart($this->templateCode,'###LISTVIEW###');
$template['item'] = $this->cObj->getSubpart($template['total'],'###ITEM###');
// Create and fill items
while ($this->internal['currentRow'] = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
// Content
$markerArray['###VORNAME###'] = $this->getFieldContent('vorname');
$markerArray['###NACHNAME###'] = $this->getFieldContent('nachname');
// Preconfigure the typolink
$this->local_cObj = t3lib_div::makeInstance('tslib_cObj');
$this->local_cObj->setCurrentVal($GLOBALS['TSFE']->id);
$this->typolink_conf = $this->conf['typolink.'];
$this->typolink_conf['parameter.']['current'] = 1;
// Typolink
$temp_conf = $this->typolink_conf;
$temp_conf["additionalParams"].= '&tx_myextension_pi1[mode]=list&tx_myextension_pi1[cat]='.$row['uid'];
$temp_conf['useCacheHash']=$this->allowCaching;
$temp_conf['no_cache']=!$this->allowCaching;
$temp_conf['parameter.']['wrap'] = "|,".$GLOBALS['TSFE']->type;
$wrappedSubpartContentArray['###LINK###'] = $this->local_cObj->typolinkWrap($temp_conf);
$content_item .= $this->cObj->substituteMarkerArrayCached($template['item'], $markerArray, $wrappedSubpartContentArray);
}
// Fill complete list into Template
$subpartArray['###CONTENT###'] = $content_item;
$subpartArray['###MODE_SELECTOR###'] = $this->pi_list_modeSelector($items); // Mode Selector
$subpartArray['###SEARCHBOX###'] = $this->pi_list_searchBox(); // Search box
$subpartArray['###BROWSERESULTS###'] = $this->pi_list_browseresults(); // Result Browser
$content = $this->cObj->substituteMarkerArrayCached($template['total'], array(), $subpartArray);
return $content;
}
Kann mir jemand sagen was ich falsch mache?