Skip to end of banner
Go to start of banner

WPO Search

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

display the search results

Layout

Conditional Layout narrative:

  1. Normal search results (with or without auto-correction)

  2. Sub-phrases results (with several groups of results each matching a sub-part of the search query)

  3. No results (with a block of personalized recommendations to avoid showing a fully empty page)

Used Layout Blocks

 JSON Schema
{
  "title": "Banner",
  "type": "object",
  "properties": {
    "title": {
      "type": "object",
      "title": "Title",
      "properties": {
        "de": {
          "type": "string",
          "description": "value for German"
        },
        "fr": {
          "type": "string",
          "description": "value for French"
        }
      }
    },
    "img_desktop": {
      "type": "object",
      "title": "Desktop Image (path)",
      "properties": {
        "de": {
          "type": "string",
          "description": "path for German"
        },
        "fr": {
          "type": "string",
          "description": "path for French"
        }
      }
    },
    "img_mobile": {
      "type": "object",
      "title": "Mobile Image (path)",
      "properties": {
        "de": {
          "type": "string",
          "description": "path for German"
        },
        "fr": {
          "type": "string",
          "description": "path for French"
        }
      }
    },
    "text_html": {
      "type": "object",
      "title": "Text",
      "properties": {
        "de": {
          "type": "string",
          "format": "html",
          "options": {
            "wysiwyg": true
          },
          "description": "html text for German"
        },
        "fr": {
          "type": "string",
          "format": "html",
          "options": {
            "wysiwyg": true
          },
          "description": "html text for French"
        }
      }
    },
    "text_color": {
      "title": "Text color",
      "type": "string",
      "format": "color",
      "description": "Color for the text (use hex format like #ff0000, If empty, default color)"
    },
    "text_alignment": {
      "title": "Text alignment",
      "type": "string",
      "enum": [
        "left",
        "center",
        "right"
      ],
      "description": "Text position"
    },
    "button_label": {
      "type": "object",
      "title": "Button Label",
      "properties": {
        "de": {
          "type": "string",
          "description": "value for German"
        },
        "fr": {
          "type": "string",
          "description": "value for French"
        }
      }
    },
    "button_color": {
      "title": "Button color",
      "type": "string",
      "format": "color",
      "description": "Color for the text (use hex format like #ff0000, If empty, default color)"
    },
    "fine_print": {
      "type": "object",
      "title": "Fine print",
      "description": "Desktop positioning lower end / Mobile : out of the banner below",
      "properties": {
        "de": {
          "type": "string",
          "description": "value for German"
        },
        "fr": {
          "type": "string",
          "description": "value for French"
        }
      }
    },
    "link": {
      "type": "object",
      "title": "Banner target (URL)",
      "properties": {
        "de": {
          "type": "string",
          "description": "target URL in German"
        },
        "fr": {
          "type": "string",
          "description": "target URL in French"
        }
      }
    },
    "accessor": {
      "type": "string",
      "description": "hits accessor (typically leave empty)"
    }
  }
}

Complete search:

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.