Hi,
I am trying to figure out how to use the namespace Dynamicweb.Content.Files.Metadata.Meta for getting metadata from metafields that are set inte File Manager.
Exampel:
I have configured a metafield called "DocumentName".
I have added that field to a file in File Manager.
Now I want to get that value in a razor template where I know the path to the file.
I thought I could do something like below, but that does not give me anything.
Any suggestions?
var metadata = new Dynamicweb.Content.Files.Metadata.Meta {File = pathToFileUrl }; metadata.GetValue("DocumentName")
Regards / Aki