Developer forum

Forum » Templates » How do I get primary domains for all areas?

How do I get primary domains for all areas?

Jonas Krarup Dam
Reply

See subject. 

I've tried simply using  Dynamicweb.Content.Area.GetAreas(), but the areas that are returned only have a "domain" property, which appears to have all domains for the area, in one string (which doesn't seem too useful).

/Jonas

 


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Hi Jonas! :)

You can get the primary domain by another property...

string primaryDomain = area.DomainLock;

/Morten

Votes for this answer: 1

 

You must be logged in to post in the forum