I need a way to tell whether a page does not have a particular property defined versus having the property defined but no value set. How can I do this?
pseudo code for what I want to accomplish:
if(CurrentPage contains a property called "theProperty") if(CurrentPage["theProperty"] != null) do something...
I only want to apply the logic in the second "if" statement if the page has a property called "theProperty" defined.
If a property is not set it will not be saved in the database. But I guess you could load the actual pagetype definitions to check if your property exists.
Check out the PageType class.
There is a function in the property class:
Cr*p I've totally missed that one possibility.
That might do it. Testing now.
Done and done.
Your'e welcome :)