London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

List of named properties

Vote:
0
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:
0
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.