SOLVED - Block only viewable if populated with at least one field?
Design and Skin Customization
ba9801:...How do I only display this block if at least one of the sections has been filled in ie Guitar: ?
First thing to do is to put {debug} next to the code.
Then refresh the page and the debug panel will open as a popup.
Then locate the variable name your want to check for, it will look something like:
{$something_guitar} or {$_item.something_guitar}
Then only once you know the variable name are you able to use the variable.
{if strlen($something_guitar) > 2}
{/if}
--edit--
Working on the {debug} docs now, cant believe I forgot such an important function.
They will be here when done:
https://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug
updated by @michael: 12/08/13 08:47:19PM