Skip to content

Recipes (OrchardCore.Recipes)

食谱(OrchardCore.Recipes)

Recipe helpers

食谱助手

Recipes can use script helpers like this:

食谱可以使用这样的脚本助手:


{

 <font color=#0099ff size=4 face="黑体">{</font> 


    "ContentItemId": "[js: uuid()]"

}

 <font color=#0099ff size=4 face="黑体">}</font> 


| Name | Description |

|名称|说明|

| --- | --- |

| --- | --- |

| uuid() | Generates a unique identifier for a content item |

| uuid()|生成内容项的唯一标识符

| base64(string) | Decodes the specified string from Base64 encoding. Use https://www.base64-image.de/ to convert your files to base64. |

| base64(string)|从Base64编码解码指定的字符串。使用https://www.base64-image.de/将您的文件转换为base64。 |

| html(string) | Decodes the specified string from HTML encoding |

| html(string)|从HTML编码中解码指定的字符串

| gzip(string) | Decodes the specified string from gzip/base64 encoding. Use http://www.txtwizard.net/compression to gzip your strings. |

| gzip(string)|从gzip / base64编码解码指定的字符串。使用http://www.txtwizard.net/compression来压缩你的字符串。 |