I'm using Blogger Enclosure Links to store custom metadata (price, version, sales count, etc.) inside the post editor.
Previous BehaviorPreviously, Blogger allowed arbitrary values in the MIME Type field, for example:
Link: http://sales.blog
MIME Type:
420 or 4.5$and I could simply display:
<data:enclosure.mimeType/>which returned:
420 or 4.5$Recently Blogger started validating the MIME Type field and now only accepts values in MIME format:
hello/text or application/xml or custom/valueNumeric values or plain text are rejected.
For example:
420 or 4.5$ or 1.4.5are no longer accepted.
So I currently test:
420/12 or 4.5$/4 or 1.4.5/4and:
<data:enclosure.mimeType/>outputs:
420/12 or 4.5$/4 or 1.4.5/4but I want:
420 or 4.5$ or 1.4.5without JavaScript.
These do NOT work: "abc".split("/") "abc".substring(0,2) "abc".slice(0,2) "abc"[0] "abc".charAt(0)
I also tried storing values in URLs: https://discount.blog?ref=420 https://sales.blog/420 https://version.blog?v=1.4.5
and tried: data:enclosure.url.params.ref data:enclosure.url.path data:enclosure.url.query
but none of them work.
These all fail: split() substring() slice() replace() charAt() startsWith endsWith matches
Is there any undocumented Blogger V3 operator or expression syntax that can extract the part before / from:
420/12 or 4.5$/4 or 1.4.5/4or extract query parameters from: https://discount.blog?ref=420
without using JavaScript?