[Typo3-UG Dutch] aanpassen reference extensie

Paul Maas paulm at paulm.nl
Fri Jun 17 13:16:46 CEST 2005


Hoi Graag zou ik de reference extensie aanpassen. Nou zijn er
selectboxen voor het kiezen van een bepaalde referentie graag zou ik
zien dat je gewoon een soort van menutje hebt waar je doorheen kunt
bladeren. Denk iemand dat hier een mogelijkheid voor is? 

Hieronder een stukje code uit het php script


	/**
	 * Make selector boxes in the top of page
	 */
	function makeSelectors()	{
		$fullTable.=$this->makeStatusSelect();
		$fullTable.=$this->makeCatSelect();
		$fullTable.=$this->makeEmpSelect();
		return
'<DIV'.$this->pi_classParam("modeSelector").'>'.
			$fullTable.
			'</DIV>';
	}
	
	/**
	 * Make the selectorbox with the status.
	 */
	function makeStatusSelect()	{
		$opt=array();
		for ($a=0;$a<4;$a++)	{

$this->pi_linkTP_keepPIvars("",array("status"=>($a?$a:""),"pointer"=>""),0);
			$opt[]='<option
value="'.htmlentities($this->cObj->lastTypoLinkUrl).'"'.($this->piVars["status"]==$a?"
SELECTED":"").'>'.$this->pi_getLL('status_'.$a).'</option>';
		}
		return '<select
onChange="document.location=this.options[this.selectedIndex].value;">'.implode("",$opt).'</select>';
	}


groeten paul



More information about the TYPO3-UG-dutch mailing list