is a very good, clever and simple way to check for the content
{section show=.....}
takes any value except false. If the value is false it will skip the section. So the implementation is not "rude", but I would say clever. ;)
A programmer always use the clever and easiest way to accomplish things. And if you want the code to be readable by someone else (why you're doing the above) use comment.
I have done it as described now, but I do not think it is a very clever way as you are directly checking on an variabel which you do not know is going to be there in future releases of EZ. What I am missing is an function for checking for actual content. Ala
This as a function could be rewritten if "content" where to disapper in future releases, or have different values. I belive that checking for actual content should be a mandatory function! The fact that content return "false", and not null when there is no content is not very initutive I think.
But thanks for tip:).
Cheers Tore
You must be logged in to post messages in this topic!