I'm trying to figure out the umbraco API here. In a piece of code, I'm trying to list all Properties on a Tab. I know I can get these by using:
MyTab.PropertyTypes
But this property is declared "obsolete" (deprecated) and it refers me to the function GetPropertyTypes(int). This function, however, requires a parameter 'ContentTypeId' and I'm not sure what I should specify. I want all the properties, not only properties of a certain type.
I've tried looking for the documentation about this function, but couldn't find any. Can anyone please point me in the right direction?
Getting all the Properties on tab in umbraco
I'm trying to figure out the umbraco API here. In a piece of code, I'm trying to list all Properties on a Tab. I know I can get these by using:
But this property is declared "obsolete" (deprecated) and it refers me to the function GetPropertyTypes(int). This function, however, requires a parameter 'ContentTypeId' and I'm not sure what I should specify. I want all the properties, not only properties of a certain type.
I've tried looking for the documentation about this function, but couldn't find any. Can anyone please point me in the right direction?
is working on a reply...