GetAttributeValue(string, string) Method
Gets the specified attribute value of each query result and sets it in the metadata of the corresponding result document(s). If the attribute is not found for a given query result, no metadata is set. If metadataKey is null, the attribute name will be used as the metadata key, otherwise the specified metadata key will be used.
Namespace
Statiq.Core
Containing Type
QueryHtml

Syntax

public QueryHtml GetAttributeValue(string attributeName, string metadataKey = null)

Parameters

Name Type Description
attributeName string Name of the attribute to get.
metadataKey string The metadata key in which to place the attribute value.

Return Value

Type Description
QueryHtml The current module instance.