Class TemplateFile
- Namespace
- Dynamicweb.Rendering.Designer
- Assembly
- Dynamicweb.Core.dll
A representation of a template file.
- Inheritance
-
Template
File
- Inherited Members
Remarks
Only files of type .html, .htm, .xsl, .xslt. Icon files can be placed in same location with same name, but with extension of png, gif or jpg
Constructors
TemplateFile(FileInfo)
Initializes a new instance of the Template
Parameters
template
FileInfo The template.
Properties
Description
Gets the description of the template file from @Paragraph.Description(the description).
Property Value
- string
The description value from the tag if present.
FileNameWithoutExtension
Gets the name of the template file with out extension.
Property Value
- string
The name with out extension. I.e. Main if the layout file is /Designs/NameOfDesign/Main.html
FullName
Gets the absolute path to the template , i.e /Files/Templates/Designs/Design1/Paragraph/file.html
Property Value
Icon
Gets the icon of the layout - a .gif, .png or .jpg with same name and location as the html file.
Property Value
Location
Gets the absolute path to the template folder, i.e /Files/Templates/Designs/Design1/Paragraph/
Property Value
Name
Gets the name of the template file, i.e. file.html
Property Value
TemplateFileInfo
Gets a fileinfo object of the layout template
Property Value
TemplateName
Gets the relative path to the template , i.e /Designs/Design1/Paragraph/file.html
Property Value
Title
Gets the title of the template file from @Paragraph.Title(the title). Otherwise it returns the name of the template file.
Property Value
- string
The title value from the tag if present.
Methods
GetTemplateFiles(string)
Gets a collection of template files in specified directory.
Parameters
path
stringPath to template files