...
Code Block | ||||
---|---|---|---|---|
| ||||
AssetField assetField = Sitecore.Context.Item.Fields["Asset"];
var name = assetField.AssetMetadata.Name;
var htmlRender = assetField.RenderAsset(); |
4.2 How to retrieve metadata for the field type AssetLink
...
...
Code Block | ||||
---|---|---|---|---|
| ||||
AssetField assetField = Sitecore.Context.Item.Fields["Asset"];
var name = assetField.AssetMetadata.Name;
var htmlRender = assetField.RenderAsset(); |
...