Text Filter Fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterberlin
    Active Community Member
    • Mar 2015
    • 1004

    Text Filter Fields

    Hi,
    How to add additional fields.
    For example, there is only 2 in the Knowledge Base. The field solution would still be important.
    peter
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Sorry
    I can't even imagine, what do you mean... Could you explain?

    Comment

    • peterberlin
      Active Community Member
      • Mar 2015
      • 1004

      #3

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        client/src/views/admin/entity-manager/modals/edit-entity.js
        since 214 row
        add wysiwyg to list

        Code:
        var optionList = Object.keys(fieldDefs).filter(function (item) {
                            if (!~['varchar', 'text', 'phone', 'email', 'personName', 'number','wysiwyg'].indexOf(this.getMetadata().get(['entityDefs', scope, 'fields', item, 'type']))) {
                                return false;
                            }
                            if (this.getMetadata().get(['entityDefs', scope, 'fields', item, 'disabled'])) {
                                return false;
                            }
                            return true;
                        }, this);
        or change collection in entityDefs in KnowledgeBaseaArticle to
        Code:
            "collection": {
                "sortBy": "order",
                "asc": true,
                "textFilterFields": ["name", "description", "body"]
            }
        but without customization in front-end side, this modification won't be visable.

        But I'm sure, that search in wysiwyg field will work correctly.

        Comment

        • peterberlin
          Active Community Member
          • Mar 2015
          • 1004

          #5
          Thank you very much.

          Comment

          Working...