I tried to get available tabs in Umbraco (7.4.2) using the following code:
DocumentType dt = new DocumentType(1051); //id of documenttype
foreach (ContentType.Tab x in dt.getVirtualTabs)
{
...
}
but ... DocumentType
is obsolete and when I tried to call getVirtualTabs
then I got exception and I cannot use it.
How to get available tabs ?