[TYPO3] EXT template subparts wrap help

rocky Ou rockysynergy at max-source.com
Tue Feb 6 15:56:42 CET 2007


Hey all,

In my EXT front end I need have a list of links likes below:

Function 1
Function 2
Function 3


I'm using HTML template for this:

<!-- ###TEMPLATE_START### begin
	The IMS clients listing
-->
<div class="tx-ims-content">
<DL>
<DT>###TITLE###</DT>
<DD>###BROWSE_EDIT_CLIENT_INFO###</DD>
<DD>###ADD_NEW_CLIENT###</DD>
</DL>
</div>
<!-- ###TEMPLATE_START###end>

in ext/ims/class.ims_pi1.php I use the below code to generate the 
frontend content:
  $markerArray['###TITLE###'] = 
this->pi_getLL('displaylis_iWantTo','come on');
$markerArray['###BROWSE_EDIT_CLIENT_INFO###']=this->pi_getLL('displaylis_browserEditClientS');
$markerArray['###ADD_NEW_CLIENT###']=$this->pi_getLL('displaylis_addNewClient');
$template=$this->cObj->getSubpart($this->templateCode,'###TEMPLATE_START###');
		// then substitute all the markers in the template into appropriate places
$content=$this->cObj->substituteMarkerArrayCached($template,$markerArray,$subpartMarker, 
array());

It generates the output without any problem. But I want each function 
item be wrapped with <a> tag and when the website visitors click on the 
function items it will generate url with action=function1 appended. Can 
any of you give me a hint how to accomplish this please?

Thanks in advance!
Rocky


More information about the TYPO3-english mailing list