some days ago i needed to have a complete listing of the TypoScript Constants and Setup that affect a specified page. sure, the good template-analyzer highlights the lines of a single ts template found in the rootline. but how do you display the complete TypoScript that applies to this page?

maybe the dirty copy/paste trick works out for smaller sites, but if the hierarchy is getting more complex you definitely don´t want to go this extra miles. so, i started my own extension to present this function. after a short while digging into the template analyzer code from kasper i was surprised as he already built in this feature of a complete listing.
complete ts listing using onboard functions
your http request to view a single template with the template analyzer looks like
http://t3/typo3/sysext/tstemplate/ts/
/index.php?id=42&template=sys_23
…or at least a bit like that. Now, if you fire up a request like this
http://t3/typo3/sysext/tstemplate/ts/
/index.php?id=42&template=all
…you´ll get what you want. It can be easy like this.
To spare you the typing by hand, you could touch the systext itself. Add the following lines in typo3/sysext/tstemplate_analyzer/class.tx_tstemplateanalyzer.php i.e. around line 122 (after the section “Template Hierarchy” is set up).
$completeLink= '<p><a href=&amp;quot;index.php?id='.$GLOBALS['SOBE']->id.'&amp;amp;template=all&amp;quot;>view the complete TS Listing</a></p>';
$theOutput.=$this->pObj->doc->spacer(5);
$theOutput.=$this->pObj->doc->section(&amp;quot;Complete TS:&amp;quot;,$completeLink,0,1);
Then visit the Template Analyzer again and click the button. Get yourself some cool or hot drink as the ts parser now works out all the TypoScript lines you asked for what could take a while.
That snippet especially comes in handy when administrating foreign pages that have not been setup by you and the object browser keeps spitting error at line xxxx in your backend.
As for me, this makes my weekend. I still wonder why this feature is not visible for the user (security/performance issues? or just forgot?) or maybe i even was too stupid to find the button. But i like this feature and the experience that the system can do even more as the gui presents me ^^
please drop a comment if you know about these concerns. See you on monday.