Kurocoで利用される共通Object型定義

カスタム処理、バッチテンプレート、メールテンプレートなどで利用出来るSmarty変数の中で
共通の型定義を持つObjectの一覧を記載します。

ext_config オブジェクト型

コンテンツ定義の設定です。

よく利用する項目の説明

変数名説明
noString拡張番号
ext_col_nmString拡張キー名
ext_indexInt拡張番号の数値
title
ext_title
String項目名
typeString拡張種別(0: テキスト、2: 選択形式など)
optionsObject拡張項目の設定
「選択形式」、「複数選択」、「マスタ形式」の場合は選択肢の一覧となります
limitsObject入力制限
必須項目の場合は"required":"1"
ext_group_loopInt繰り返し回数
ext_slugString識別子
ext_help_msgString注釈

サンプル

[
    {
        "no":"01",
        "ext_col_nm":"ext_1",
        "ext_index":1,
        "title":"text input",
        "type":"0",
        "options":[],
        "limits":{
            "required":"1"
        },
        "ext_title":"text input",
        "ext_type":"0",
        "ext_option":"",
        "ext_group_id":null,
        "ext_group_parent_ext_col":"",
        "ext_group_loop":1,
        "ext_order_no":0,
        "ext_limit_item":"required=1",
        "ext_parent_col_nm":"",
        "topics_group_ext_id":138,
        "ext_slug":"text_col",
        "ext_help_msg":"",
        "ext_template":"",
        "separator":null,
        "ext_option_parent_id":null,
        "default_selection":"",
        "default_value":""
    },
    {
        "no":"02",
        "ext_col_nm":"ext_2",
        "ext_index":2,
        "title":"select input",
        "type":"2",
        "options":{
            "1":"value1",
            "2":"value2"
        },
        "limits":[],
        "ext_title":"select input",
        "ext_type":"2",
        "ext_option":"1::value1\\r\\n2::value2",
        "ext_group_id":null,
        "ext_group_parent_ext_col":"",
        "ext_group_loop":1,
        "ext_order_no":0,
        "ext_limit_item":"",
        "ext_parent_col_nm":"",
        "topics_group_ext_id":139,
        "ext_slug":"select_col",
        "ext_help_msg":"",
        "ext_template":"",
        "separator":null,
        "ext_option_parent_id":null,
        "default_selection":"",
        "default_value":""
    }
]

お探しのページは見つかりましたか?解決しない場合は、問い合わせフォームからお問い合わせいただくか、Slackコミュニティにご参加ください。