Themelia Pro A powerful new development platform built on ASP.NET.
 
Setting Web Domain Default Pages
 
 

Everything in Themelia is based on the concept of a web domain. Each request to your Themelia web site always goes through one and only one web domain.  However, what happens when a user accesses the / path with the following configuration?

<themelia.web>
  <webDomains>
    <add name="northSales" path="/sale/region/north/" />
  </webDomains>
</themelia.web>

Actually, it doesn't go anywhere as this isn't a complete web domain declaration.  For a web domain declaration to be complete, there must be at least one thing installed.  Otherwise your web domain and your web site have no purpose.

The most basic thing to setup in a web domain is what is called a "default page".  The default page is that which will be accessed when the web domain root is accessed.  The following shows an example of the same configuration but with a default page set for each web domain:

<themelia.web>
  <webDomains>
    <add defaultPage="/Page_/Home/Home.aspx" />
    <add name="northSales" path="/sale/region/north/" defaultPage="/Page_/Sale/Region.aspx" />
  </webDomains>
</themelia.web>

Now when a user accesses /, he or she is presented with the content at /Page_/Home/Home.aspx and when he or she accesses /sale/region/north/, the content at /Page_/Sale/Region.aspx is loaded.

Now you have web domains that have the bare minimum functionality.  Keep in mind, though, that default pages do much more than this, but here we're only talking about the absolute basics.