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!
AI OnAI Off
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!
Hi!
I think you would need to do something like this:
int count = 0;
foreach (PropertyData prop in CurrentPage.Property)
{
if (prop.IsPropertyData)
{
count++;
}
}
Regards
Per Gunsarfs
EPiServer CMS Development Team
How can I get the number of user defined properties for a page?
CurrentPage.Property.Count gives the count of all inbuilt as well as user defined properties, but I want only those porperties tha the user has made.
Thanks in advance