How do you check if a Multiline textblock (simple text editor) is empty?
How do you check if a Multiline textblock (simple text editor) is empty in Umbraco using Razor?
I have a property on an Image MediaType that I am pulling and outputting, however, when I check if the property is empty the check is not working, so it is still outputting.
the messed up thing is that we have a test website. The code I have above WORKS in the test site and now our Live site. So I don't quite know if it is a bug. The Umbraco versions are the same, The code in the Macro are the same. I don't get it.
How do you check if a Multiline textblock (simple text editor) is empty?
How do you check if a Multiline textblock (simple text editor) is empty in Umbraco using Razor?
I have a property on an Image MediaType that I am pulling and outputting, however, when I check if the property is empty the check is not working, so it is still outputting.
Here is my check below:
It is not getting past my IF statement if the property box is empty.
I have verified that the textblocks are empty but it seems like in Umbraco it property is not.
Any help is greatly appreciated.
Hi Carlos,
You have hit on a couple of annoying bugs in DynamicMedia here, below is my suggested workaround using uQuery
Try this:
Jeavon
the messed up thing is that we have a test website. The code I have above WORKS in the test site and now our Live site. So I don't quite know if it is a bug. The Umbraco versions are the same, The code in the Macro are the same. I don't get it.
Probably the difference is content, the problem is cause by this issue http://issues.umbraco.org/issue/U4-579
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.