简体   繁体   中英

BOLT CMS - disable search for certain field

Is there any possibility to disable search for certain field? Searchweight set to 0 for 'button' still shows search result based on his content. My code in contenttypes.yml:

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.

只需在您的contenttype区域中添加: searchable: false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM