2017-04-19 13 views
0

特定のフィールドの検索を無効にする可能性はありますか? 'button'の検索ウェイトを0に設定すると、彼のコンテンツに基づいて検索結果が表示されます。 contenttypes.ymlでの私のコード:BOLT CMS - 特定のフィールドの検索を無効にする

foo: 
show_in_menu: Bar 
name: Foo Bar 
taxonomy: [sorters] 
fields: 
    title: 
     type: text 
     group: General 
    lead: 
     type: textarea 
     group: General 
    url: 
     type: text 
     group: General 
    button: 
     type: text 
     required: true 
     pattern: ^.{1,15}$ 
     searchweight: 0 
     group: Button 
     label: Text on button 
     postfix: Required, max 15 characters. 

答えて

0

ちょうどあなたのContentTypeを領域に追加します:searchable: false

+0

それは全体のContentTypeをためではなく、指定したフィールド(この例では「ボタン」)のために働きます –

関連する問題