array related_by_tag( tag, type, results, sort, age )

Description:

Find other assets containing tags similar to the current asset's tags.

Parameters:

tag

The type of tag to compare with. Defaults to keyword. Value may be one of:

  • keyword
  • section
  • primary_section
  • site
type

Type of asset to limit results to.

results

The number of assets to return. Defaults to 10.

sort

How the assets will be sorted. Defaults to relevance. Value may be one of:

relevance
Assets that most closely match the current asset will be first in the results. startdate
Newest assets will be first in the results.
age

Maximum age of returned results in hours. Defaults to 24.

Return:

An array of asset objects.