Class EditorFactory
- Namespace
- Dynamicweb.Content.Files.Metadata
- Assembly
- Dynamicweb.dll
Class for editing and managing meta data on files in the file manager.
- Inheritance
-
Editor
Factory
- Inherited Members
Methods
AddFileMetadataToTemplate(string, Template, string)
Adds file metadata to template. Will set tags like: Ecom:Product.ImageSmall.Metadata.FieldName with field values.
Parameters
filePath
stringVirtual file path
template
TemplateTemplate to update
tagPrefix
stringFile metadata tag prefix (like Ecom:Product.ImageSmall)
CopyMetadata(string, string)
Copies the metadata from one file to another.
Parameters
file
stringThe file, i.e. /Files/Images/Image.jpg.
destinationFile
stringThe destination file, i.e. /Files/Images/AnotherImage.jpg.
DeleteMetadata(string)
Deletes the metadata for a specific file.
Parameters
file
stringThe file, i.e. /Files/Images/Image.jpg.
GetMetadataForFile(string)
Gets the meta data from a meta data file.
Parameters
file
stringThe full meta path, i.e. c:\solutionFolder\Files\images\image.jpg
Returns
LoadConfig(string)
Loads the configuration of meta data definitions of the specified folder.
Parameters
folder
stringThe folder i.e. "/files/images/".
Returns
MoveMetadata(string, string)
Moves the metadata from one file to another.
Parameters
file
stringThe file, i.e. /Files/Images/Image.jpg.
destinationFile
stringThe destination file, i.e. /Files/Images/AnotherImage.jpg.
SaveConfig(string, List<Field>)
Saves the configuration of meta data definitions of the specified folder.
Parameters
SaveToMetafile(Meta, string)
Saves meta data to a meta data xml file.