Add Announcements in below JSON, make sure to validate JSON everytime.

Options
SHAVETA.S.924
SHAVETA.S.924 SHAVETA Posts: 6 mod
edited December 2024 in Announcements
{"type": "alert/warning/info/update", "position": "top", "possibleCategories": "all//{shomepecific category name}",  "items": [    {      "id": "banner1",      "type": "update", "message": "Not finding what you're looking for? <a href='https://d2l.vanilladevelopment.com/english/post/question' target='_blank'>Post your question to Community</a>",      "startDate": "09/01/2024",      "endDate": "09/31/2025",      "categoryToShowOn": ["all"],      "lang":"es_MX"    },    {      "id": "banner2",      "type": "alert",      "message": "This is a alert message of testing  which will only be visible on 'announcements' ,'all', 'support' categories <a href='#' target='_blank'>Click Here</a>",      "startDate": "07/01/2023",      "endDate": "07/31/2025",      "categoryToShowOn": ["partner-content", "support", "partners-nl-nl"],      "lang":"nl"    },    {      "id": "banner3",      "type": "info",      "message": "This is a info message <a href='#' target='_blank'>Click Here</a> only for announcements, support, categories",      "startDate": "09/01/2023",      "endDate": "09/31/2025",      "categoryToShowOn": ["all", "support"],      "lang":"ar"    },    {      "id": "banner4",      "type": "warning",      "message": "This is a update message for SearchUnify category only. <a href='#' target='_blank'>Click Here</a>",      "startDate": "09/01/2023",      "endDate": "09/31/2025",      "categoryToShowOn": ["SearchUnify","support"],      "lang":"fr_CA"    }  ]}
Tagged:

Comments

  • SHAVETA.S.924
    SHAVETA.S.924 SHAVETA Posts: 6 mod
    edited September 2024

    Instruction to edit the above post:

    "type": "alert/warning/info/update",
    The types above will decide the color of the announcement banner.

    Alert : red, warning: Yellow, Info: Blue, Update: Green

    "position": "bottom",
    Position will decide the position on banner, and it can be only top or bottom .
    this is global and no need to mention inside the banner data.


    "possibleCategories": "all/home/{specific category name}",
    Here, you can specify a category name to display content in that category. For example, if you use the category name "partner-content," the content will appear in that category. If you use "all" the content will be shown on all pages, and if you use "Home" it will be displayed only on the home page..

    "id": "banner1",
    Here, you can assign a unique banner ID

    "type": "warning",

    Here, you can specify the type of information you want to display, such as "alert," "warning," "info," or "update." This indicates the nature of the message, whether it is informative, an update, an alert, or a warning.

    "message": "This is a warning messages <a href='#'>Click Here</a> atul",

    Here, you can provide the message you want to display in the announcement banner. If you are using quotes [" "] inside the message, make sure they are single quotes like this [' '].

    "startDate": "07/01/2023",

    "endDate": "07/31/2025",

    Here, you can specify the start date and end date. The announcement banner will be visible between these dates.


    "categoryToShowOn": ["announcements", "support", "all", "home," "SearchUnify"]

    Here, you can specify the category names where you want to display the announcement banner. You can choose one or multiple categories, and you can also include "all" and "home" to make it visible on all pages or just the home page.

  • Stefanie.B.897
    Stefanie.B.897 Stefanie Posts: 7 ASC Beta Tester

    {

    "type": "alert/warning/info/update",

    "position": "bottom",

    "possibleCategories": "all//{shomepecific category name}",

    "items": [

    {

    "id": "banner1",

    "type": "update",

    "message": "This is a warning messages <a href='#'>Click Here</a> atul",

    "startDate": "07/01/2023",

    "endDate": "07/31/2025",

    "categoryToShowOn": ["all"]

    },

    {

    "id": "banner2",

    "type": "alert",

    "message": "This is a alert message of testing which will only be visible on 'announcements' ,'partner-content', 'support' categories <a href='#'>Click Here</a>",

    "startDate": "07/01/2023",

    "endDate": "07/31/2025",

    "categoryToShowOn": ["announcements","partner-content", "support"]

    },

    {

    "id": "banner3",

    "type": "info",

    "message": "This is a info message <a href='#'>Click Here</a> only for announcements, support, categories",

    "startDate": "07/01/2023",

    "endDate": "07/31/2025",

    "categoryToShowOn": ["announcements", "support"]

    },

    {

    "id": "banner4",

    "type": "update",

    "message": "This is a update message for announcements category only. <a href='#'>Click Here</a>",

    "startDate": "07/01/2023",

    "endDate": "07/31/2025",

    "categoryToShowOn": ["announcements"]

    }

    ]

    }

  • Julie.L.647
    Julie.L.647 Julie Posts: 51 🤝🏼

    {

    "type": "alert/warning/info/update",

    "position": "top",

    "possibleCategories": "all//{shomepecific category name}",

    "items": [

    {

    "id": "banner1",

    "type": "update",

    "message": "This is a warning messages <a href='#'>Click Here</a> julie",

    "startDate": "07/01/2024",

    "endDate": "07/31/2025",

    "categoryToShowOn": ["all"]

    },

    {

    "id": "banner2",

    "type": "alert",

    "message": "This is a alert message of testing which will only be visible on 'announcements' ,'partner-content', 'support' categories <a href='#'>Click Here</a>",

    "startDate": "07/01/2023",

    "endDate": "07/31/2025",

    "categoryToShowOn": ["announcements","partner-content", "support"]

    },

    {

    "id": "banner3",

    "type": "info",

    "message": "This is a info message <a href='#'>Click Here</a> only for announcements, support, categories",

    "startDate": "07/01/2023",

    "endDate": "07/31/2025",

    "categoryToShowOn": ["announcements", "support"]

    },

    {

    "id": "banner4",

    "type": "update",

    "message": "This is a update message for announcements category only. <a href='#'>Click Here</a>",

    "startDate": "07/01/2023",

    "endDate": "07/31/2025",

    "categoryToShowOn": ["announcements"]

  • Stefanie.B.897
    Stefanie.B.897 Stefanie Posts: 7 ASC Beta Tester

    {
    "type": "alert/warning/info/update",
    "position": "top",
    "possibleCategories": "all//{shomepecific category name}",
    "items": [
    {
    "id": "banner1",
    "type": "update",
    "message": "Access the <a href='#' target='_blank'>Analytics Builder course</a> julie",
    "startDate": "07/01/2024",
    "endDate": "07/31/2025",
    "categoryToShowOn": ["all"]
    },

    {

    "id": "banner2","type": "alert","message": "This is a alert message of testing which will only be visible on 'announcements' ,'partner-content', 'support' categories <a href='#' target='_blank'>Click Here</a>","startDate": "07/01/2023","endDate": "07/31/2025","categoryToShowOn": ["announcements", "partner-content", "support"]

    },



    {
    "id": "banner3",
    "type": "info",
    "message": "This is a info message <a href='#' target='_blank'>Click Here</a> only for announcements, support, categories",
    "startDate": "07/01/2023",
    "endDate": "07/31/2025",
    "categoryToShowOn": ["announcements", "support"]
    },
    {
    "id": "banner4",
    "type": "warning",
    "message": "This is a update message for announcements category only. <a href='#' target='_blank'>Click Here</a>",
    "startDate": "07/01/2023",
    "endDate": "07/31/2025",
    "categoryToShowOn": ["announcements"]
    }
    ]
    }

  • steftestcorp.a.6595
    steftestcorp.a.6595 steftestcorp Posts: 2 🔍

    {
    "type": "alert/warning/info/update",
    "position": "top",
    "possibleCategories": "all//{shomepecific category name}",
    "items": [
    {
    "id": "banner1",
    "type": "update",
    "message": "Access the <a href='#' target='_blank'>Analytics Builder course</a> julie",
    "startDate": "09/01/2024",
    "endDate": "09/31/2025",
    "categoryToShowOn": ["all"]
    },

    {

    "id": "banner2","type": "alert","message": "This is a alert message of testing which will only be visible on 'announcements' ,'partner-content', 'support' categories <a href='#' target='_blank'>Click Here</a>","startDate": "07/01/2023","endDate": "07/31/2025","categoryToShowOn": ["announcements", "partner-content", "support"]

    },



    {
    "id": "banner3",
    "type": "info",
    "message": "This is a info message <a href='#' target='_blank'>Click Here</a> only for announcements, support, categories",
    "startDate": "09/01/2023",
    "endDate": "09/31/2025",
    "categoryToShowOn": ["announcements", "support"]
    },
    {
    "id": "banner4",
    "type": "warning",
    "message": "This is a update message for announcements category only. <a href='#' target='_blank'>Click Here</a>",
    "startDate": "09/01/2023",
    "endDate": "09/31/2025",
    "categoryToShowOn": ["announcements"]
    }
    ]
    }