# $GLOBALS["TSFE"]->set_no_cache(); $highObj= new user_typo3wizard; $ts= $this->getCurrentVal(); $content="
".$ts.""; $content=$highObj->highlightTS($ts); /* $filename = 'test.txt'; $somecontent =$ts; if($_GET["jaja"]==1) { $filename="/var/www/web1/html/wtest/".$GLOBALS['TSFE']->id; //$GLOBALS['TSFE']->page['title']; // Let's make sure the file exists and is writable first. //if (is_writable($filename)) { // In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. if ( !file_exists($filename)){ touch ($filename); } if (!$handle = fopen($filename, 'a')) { //echo "Cannot open file ($filename)"; exit; } // Write $somecontent to our opened file. if (fwrite($handle, $somecontent) === FALSE) { //echo "Cannot write to file ($filename)"; exit; } //echo "Success, wrote ($somecontent) to file ($filename)"; fclose($handle); //} else { //echo "The file $filename is not writable"; //}} }*/ ?>


TYPO3 creates for pages of the type shortcut and for pages of the type external link by default no direct link to the external page / to the shortcut target.
This snippet also enables the CUR and ACT state for pages of the type shortcut.
This can be changed with a CASE object on the stdWrap of a menuitem:




How can I add some attributes to the generated tag "<a href.." ?
For example, I would like to add the attribute "class".
Regards,
How can I add some attributes to the generated tag "<a href.." ?
For example, I would like to add the attribute "class".
Regards,
Add comment