Last modified: 2008-11-20 05:45:48 UTC
It would be very useful to have maximum recursion depth (see $mRecursionDepth field of SMWResultPrinter class being used in getResult method) being defined in SMW_Settings.php as a separate configuration parameter. I'm using four nested template calls to display complex query result. It was possible in SMW 1.1.2 but it's not possible now.
Ok, wish granted. You can set, e.g., SMWResultPrinter::$maxRecursionDepth = 5; in LocalSettings.php *after* enableSemantics() was called. Note that recursive templates can easily be crafted to increase the results size exponentially, so use this setting with care. If some recursion goes too far, then you will get a PHP memory allocation error or simply a blank result page -- directly access the URL with action=edit in this case to fix its contents.
Thanks! It's exactly what I wanted! And thanks for warning - I'll be careful with recursive templates.