Make a Lasting Impression
ImpressCMS Blog > UI for 2.0 preview: Smarty debug

UI for 2.0 preview: Smarty debug

One of 2.0 release goals is get a more friendly and responsive UI in User and Admin Side. The job is next to the end.
A minor advance shows the point: Smarty debug.
The classic look and feel is really ugly and outdated.


smarty_before


Let´s go with the improvements:

smarty_before


Now it is tabbable (without loading external files); as our Smarty vars are short the columns widht using better the space available. Color changed according the now look and feel, etc.
And look the vars content: now there is more text; before sometimes the info was too short. By default Smarty debug cuts off the longer strings to a max of 40 caracters but passing some values with a modifier you can override this behaviour.

If you like a different value for vars content look the line 211

<td>{$_debug_vals[vars]|@debug_print_var:0:400}</td>

Just change 400 for you own value.

And the good news is you do not need wait for 2.0 final to use these changes: just replace the file for the new in /libraries/smarty/debug.tpl

Download
All posts by debianus
Subscribe to latest posts
The comments are owned by the poster. We aren't responsible for their content.
Poster Thread