[TYPO3] EXT develop link question

Rocky rockyo at max-source.com
Tue Oct 31 04:16:53 CET 2006


Hey list,

Please bear me as an newbie. It should be extremely easy if knows how.

The EXT I am developing needs to have the following features. Page A 
shows a list of clients name followed by linkable text "Show". Click of 
the "Show" will show the detailed information about the customer 
followed by linkable text "Edit" in page B. When the visitor click on 
"Edit" they will be brought to the editing page.

The solution in my mind is putting all the php code in 
pi1/class.myext.php and use php's structure control statement to do the 
job. Thus I need to add id attribute to HTML a tag. For instance I can 
do the following:
Client A <a href="current page" id="edit">Edit</a> //HTML output
if ($_GET['edit']){...code to through out editing form} //EXT php structure.

I'm trying to use the following code.
var $urlpara=array('id'=>'edit');
this->pi_linkToPage(edit,$GLOBALS['TSFE']->id,$this->$urlpara)
But this does not give me the expected HTML output. Can any of you give 
me a hint on where did I do wrong please?

Plus, What are the better ways to develop the similar extension? I'm 
open to any suggestion. Because I'm very new to PHP and TYPO3.

Any assistance would be highly appreciated! Thanks a lot in advance!

Rocky Ou



More information about the TYPO3-english mailing list