Updated PlaceholderResolver.setFromItem to use a generalized method for adding placeholders based on related items (top level, parent, ancestor, etc). Making it easier to add placeholders for related items. This method is now used to add the following related item placeholders (some were already present previously, many are new):
{top_level_guid} - The GUID of the associated top level item
{top_level_name} - The name (via Item.getLocalisedName) of the associated top level item
{top_level_kind} - The kind (via ItemType.getKind.getName) of the associated top level item
{top_level_type} - The localised (human friendly) name of the mime type attributed to the associated top level item.
{top_level_mimetype} - The mime type of the associated top level item.
{top_level_short_date} - The short format (YYYYMMDD) item date of the associated top level item.
{top_level_long_date} - The long format (YYYYMMDD-HHMMSS) item date of the associated top level item.
{top_level_year} - The item date year (YYYY) of the associated top level item.
{top_level_month} - The item date month (MM) of the associated top level item.
{top_level_day} - The item date day (DD) of the associated top level item.
{parent_guid} - The GUID of the associated parent item
{parent_name} - The name (via Item.getLocalisedName) of the associated parent item
{parent_kind} - The kind (via ItemType.getKind.getName) of the associated parent item
{parent_type} - The localised (human friendly) name of the mime type attributed to the associated parent item.
{parent_mimetype} - The mime type of the associated parent item.
{parent_short_date} - The short format (YYYYMMDD) item date of the associated parent item.
{parent_long_date} - The long format (YYYYMMDD-HHMMSS) item date of the associated parent item.
{parent_year} - The item date year (YYYY) of the associated parent item.
{parent_month} - The item date month (MM) of the associated parent item.
{parent_day} - The item date day (DD) of the associated parent item.
{container_guid} - The GUID of the associated nearest ancestor container item
{container_name} - The name (via Item.getLocalisedName) of the associated nearest ancestor container item
{container_kind} - The kind (via ItemType.getKind.getName) of the associated nearest ancestor container item
{container_type} - The localised (human friendly) name of the mime type attributed to the associated nearest ancestor container item.
{container_mimetype} - The mime type of the associated nearest ancestor container item.
{container_short_date} - The short format (YYYYMMDD) item date of the associated nearest ancestor container item.
{container_long_date} - The long format (YYYYMMDD-HHMMSS) item date of the associated nearest ancestor container item.
{container_year} - The item date year (YYYY) of the associated nearest ancestor container item.
{container_month} - The item date month (MM) of the associated nearest ancestor container item.
{container_day} - The item date day (DD) of the associated nearest ancestor container item.