Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-141110

Blueprints Admin - OOTB Elements: CUSTOM

Details

    Description

      https://liferay.atlassian.net/wiki/spaces/ENGSEARCH/pages/1912963699/Blueprints+V1+-+Screens+and+Features+to+Backend-Frontend+Work+Breakdown#OOTB-Elements%3A-CUSTOM

      Validation: Use-cases:

      1. "Paste Any Elasticsearch Query": LPS-123993
      2. "Custom JSON Element": use the configuration of one of the OOTB elements, for example "Boost Contents in a Category":
        {
            "description_i18n":{
                "en_US":"CUSTOM Boost Contents in a Category"
            },
            "elementDefinition":{
                "category":"custom",
                "configuration":{
                    "queryConfiguration":{
                        "queryEntries":[
                            {
                                "clauses":[
                                    {
                                        "context":"query",
                                        "occur":"should",
                                        "query":{
                                            "terms":{
                                                "boost":"${configuration.boost}",
                                                "assetCategoryIds":"${configuration.asset_category_ids}"
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    },
                    "uiConfiguraion":{
                        "fieldSets":[
                            {
                                "fields":[
                                    {
                                        "label":"Asset Category IDs",
                                        "name":"asset_category_ids",
                                        "type":"multiselect"
                                    },
                                    {
                                        "defaultValue":10,
                                        "label":"Boost",
                                        "name":"boost",
                                        "type":"number",
                                        "typeOptions":{
                                            "min":0
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                },
                "icon":"custom-field"
            },
            "title_i18n":{
                "en_US":"CUSTOM Boost Contents in a Category"
            }
        }
        

      Attachments

        Issue Links

          Activity

            People

              joshua.chong Joshua Chong
              eduardo.zoby Eduardo Zoby
              Gustavo Lima Gustavo Lima
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Development End Date:
                Development Start Date:

                Packages

                  Version Package
                  7.4.13 DXP U5