UPDATE : A download package is available here : http://ideamesh.com/file/11/Smarty-Debug-with-Collapsible-Variables.html UPDATE: Ein Download-Paket finden Sie hier: http://ideamesh.com/file/11/Smarty-Debug-with-Collapsible-Variables.html
Here is the modified code, working and ready to go.. Hier ist der Code geändert, arbeiten und bereit zu gehen ..
Here is the link where you can download the nanotree javascript… Hier ist der Link, wo Sie die nanotree Javascript herunterladen können ...
http://nanotree.sourceforge.net/ http://nanotree.sourceforge.net/
Replace my variable {$Site.framework_pub} appropriately so that the javascript and images can be loaded correctly. Ersetzen Sie meine Variable {$ Site.framework_pub} entsprechend, so dass die Javascript und Bilder richtig geladen werden kann.
Also please note, I have added in a section to handle user defined debug vars… My debug structure is named '_user_debug' and '_user_debug_key' Bitte beachten Sie auch, habe ich in einem Abschnitt hinzugefügt, um benutzerdefinierte Debug vars handhaben ... Meine Debug-Struktur namens '_user_debug' und '_user_debug_key'
For more info on how to implement this look at this thread : Für weitere Informationen darüber, wie Sie dieses Blick auf diesen Thread zu implementieren:
http://www.smarty.net/forums/viewtopic.php?p=31241#31241 http://www.smarty.net/forums/viewtopic.php?p=31241 # 31241
Otherwise if you aren't interested, it is safe to remove that section from the template. Andernfalls, wenn Sie nicht interessiert sind, ist es sicher, diesen Abschnitt aus der Vorlage entfernen. You could also remove the {if} statement I used to wrap the template var section. Sie könnten auch entfernen {if} Anweisung habe ich die Vorlage var Abschnitt wickeln.
Another thing you might want to play with is how many characters are output as the value for debug. Eine andere Sache, die Sie mit spielen könnte, ist, wie viele Zeichen ausgegeben als Wert für debug. Look for this and modify the second number to alter the max chars output :@debug_print_var:0:1000 Geben Sie für diese und ändern Sie die zweite Zahl die max Zeichen Ausgang ändern: @ debug_print_var: 0:1000
PS Can anyone figure out why I am getting a space above the <h3> in the right cell? PS Kann jemand herausfinden, warum ich immer einen Raum oberhalb des <h3> bin in der richtigen Zelle?
Hope this helps, I know I like it Hoffe, das hilft, weiß ich, Ich mag es ![]()
PS To get all the javascript working correctly you only need to modify the line “var mynanopath = ” and make sure it points to your public nanopath directory. PS Um all das Javascript korrekt funktioniert müssen Sie lediglich die Zeile ändern "var mynanopath =" und stellen Sie sicher, es weist auf Ihren öffentlichen nanopath Verzeichnis. You can down the nanotree package from http://sourceforge.net/projects/nanotree/ Sie können sich das Paket von nanotree http://sourceforge.net/projects/nanotree/
Here is the updated code Hier ist die aktualisierte Code
| Code: Code: |
| {* {* Smarty Custom DHTML Debug Template Smarty Template Individuelle DHTML Debug @author Hielke Hoeve @ Author Hielke Hoeve @author Owen Cole <owenc at ideamesh dot com> @ Author Owen Cole <owenc bei ideamesh dot de> @since 02/13/2006 Smarty 2.6.12 @ Since 02/13/2006 Smarty 2.6.12 @package Smarty @ Package Smarty @filename debug.tpl @ Dateiname debug.tpl *} *} {assign_debug_info} {} Assign_debug_info <SCRIPT language=javascript> <SCRIPT Language=javascript> if( self.name == ” ) {ldelim} if (self.name == ") {} ldelim _smarty_console.document.write(” \/**\n”); _smarty_console.document.write ("\ / ** \ n"); _smarty_console.document.write(” \/**\n”); _smarty_console.document.write ("\ / ** \ n"); _smarty_console.document.write(” function nodeEdited(treeNode) {ldelim}\n”); _smarty_console.document.write ("Funktion nodeEdited (TreeNode) {ldelim} \ n"); _smarty_console.document.write(” var closedGif = '” + mynanopath + “images\/folder_closed.gif';\n”); _smarty_console.document.write ("var closedGif = '" + + mynanopath "images \ / folder_closed.gif'; \ n"); {* Create base node *} {* Erstellen Basisknotens *} {* Create node for template includes *} {* Erstellen Knoten für Vorlage enthält *} _smarty_console.document.write(” rootNode.addChild(node{$counter});\n”); _smarty_console.document.write ("rootNode.addChild (node {$ counter}); \ n"); {* Create node for user debug variables *} {* Erstellen Knoten für Benutzer Debug-Variablen *} {* Create child nodes for user debug variables *} {* Erstellen Sie untergeordnete Knoten für Benutzer Debug-Variablen *} {* Create node for template variables *} {* Erstellen Knoten für Template-Variablen *} {* Create child nodes for template variables *} {* Erstellen Sie untergeordnete Knoten für Template-Variablen *} {* Create node for smarty config file variables *} {* Erstellen Knoten für smarty Konfigurations-Variablen *} {* Create child nodes for smarty config file variables *} {* Erstellen Sie untergeordnete Knoten für smarty Konfigurations-Variablen *} _smarty_console.document.write(”\/\/–>\n”); _smarty_console.document.write ("\ / \ / -> \ n"); |









































