From 6e885067088149e38b6b529f47d3b1850c374569 Mon Sep 17 00:00:00 2001 From: Tiger Oakes Date: Thu, 4 Oct 2018 22:57:01 -0700 Subject: [PATCH] Add MediaType docs --- content/en/content-management/page-resources.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/en/content-management/page-resources.md b/content/en/content-management/page-resources.md index f45cf4b01..6d1f991d0 100644 --- a/content/en/content-management/page-resources.md +++ b/content/en/content-management/page-resources.md @@ -31,6 +31,18 @@ Permalink RelPermalink : The relative URL to the resource. Resources of type `page` will have no value. +MediaType +: The MIME type of the resource, such as `image/jpg`. + +MediaType.MainType +: The main type of the resource's MIME type. For example, a file of MIME type `application/pdf` has for MainType `application`. + +MediaType.SubType +: The subtype of the resource's MIME type. For example, a file of MIME type `application/pdf` has for SubType `pdf`. Note that this is not the same as the file extension - PowerPoint files have a subtype of `vnd.mspowerpoint`. + +MediaType.Suffixes +: A slice of possible suffixes for the resource's MIME type. + ## Methods ByType : Returns the page resources of the given type.