2017-04-19 11 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

그것은 (이 예에서는 '버튼')하지 지정된 필드의 전체 컨텐트 유형 작동 –