November Happy Hour will be moved to Thursday December 5th.

List of named properties

Vote:
 
I want a list of all properties used on a site, I dont want the type I want the name given to the property by the administrator. E.g MainIntro, MainBody and so on. Any ideas?
#12454
Nov 29, 2005 11:28
Vote:
 
Solved it... protected Hashtable GetPropertyNames { get { Hashtable HT = new Hashtable(); PageTypeCollection PTC = new PageTypeCollection(); PTC = PageType.List(); foreach (PageType PT in PTC) { foreach(PageDefinition PDef in PageDefinition.List(PT.ID)) { if(!HT.Contains(PDef.Name)) { HT.Add(PDef.ID,PDef.Name); } } } return HT; } }
#14288
Nov 29, 2005 14:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.