[support] how can I stop a block showing if it's empty? (not a Views block)

Fred Jones fredthejonester at gmail.com
Thu Jun 26 16:18:43 UTC 2008


> if $output
> return TRUE

No, because $output is not accessible AFAIK in the visibility box--it
is defined in the content of the block. You would have to write the
logic code again in the visibility block, but just the logic to
determine if there is or isn't output. And don't forget that you are
checking not only that there is output, but also that the path is one
of blog/*, video/*, image/*, etc.

HTH


More information about the support mailing list