Documentation > CMS Template API Library > PublishingPackage > HostName

HostName

Available in builds 4201 and up. Available during output or publishing : output.aspx, url.aspx or filename.aspx The domain name for this publishing package. Must have been configured in the publishing package configuration under "Hostname"

Type

System.String

Code Example

C#

Sample:

            
            <% Out.WriteLine("HostName: " + context.PublishingPackage.HostName   + "<br/>"); %>    
            
            

Connect with Crownpeak