Content Transforms

    Content transforms make it easy to author dynamically generated content.

    PHP Syntax Formatting

    $stringWithUrl = "http://blog.dreamprojections.com";
    $stringWithUrl = 'http://www.dreamprojections.com';
    
    ob_start("parseOutputBuffer");		// Start Code Buffering
    session_start();
    
    function parseOutputBuffer($buf) {
    	global $portal_small_code, $portal_gzcompress;
    	global $PHP_SELF, $HTTP_ACCEPT_ENCODING;
    
    	// cleaning out the code.
    	if($portal_small_code && !$portal_gzcompress) {
    		$buf = str_replace("	", "", $buf);
    		$buf = str_replace("\n", "", $buf);
    		$buf = str_replace(chr(13), "", $buf);
    	}
    }

    Math Equations

    reference to undefined name 'math' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown. (click for details)

    Automatic Graphs

    reference to undefined name 'graphviz' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown. (click for details)
    Tag page
    Viewing 1 of 1 comments: view all
    Creating a new content transform is as easy as registering a new extension in the services management console of the control panel.
    Posted 12:53, 1 May 2008
    Viewing 1 of 1 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by