Documentation > CMS Template API Library > OutputContext > PublishPath

PublishPath

Current value of the publish Path (the ftp filename relative to the root). Used in the actual transfer of a file to the server. It can be overridden in filename.aspx or assetfilename.aspx. WARNING: This value is not populated and has no effect in url.aspx and asseturl.aspx

Type

System.String

Code Example

C#

Sample:
 
             
              
             // overriding the publish path in filename.aspx
             context.PublishPath = context.PublishPath + context.PageNumber + ".html"; 
            
            

Connect with Crownpeak