Developer forum

Forum » Development » How to get all areas

How to get all areas


Reply

Im developing a custom module and need to get all areas out in my cs file. How do I get that out?


Replies

 
Nicolai Høeg Pedersen
Reply
ks wrote:


Im developing a custom module and need to get all areas out in my cs file. How do I get that out?





Is it in backend:


Dynamicweb.Core.AreaCollection areas = Dynamicweb.Core.Area.GetAllAreas();


 


If you need a select with the areas:


gui.SelectArea("NameOfField", 0) wher 0 is the chosen areaid.

 

You must be logged in to post in the forum