Answers, Module 10, Challenge Assessment, Core Frontend - Adding Pages & Cards

I’ve attempted this challenge a few times now and can’t seem to find where my error in the code is for Events and FAQs. I would love a second pair of eyes on it and feedback. Thank you!

Hi Sarah,

Here are some hints below!

Events Page
The verticalKey should reflect what you have in the Answers configuration.

For example, since your Answers backend configuration has defined the events vertical as the below:

  "verticals": {
    "events": {
      "entityTypes": [
        "event"
      ],
      "name": "Events",
      "searchableFields": {
        "builtin.entityType": {
          "nlpFilter": true
        },
        "name": {
          "textSearch": true
        }
      },
      "sortBys": [],
      "source": "KNOWLEDGE_MANAGER"
    },

The verticalKey for the Events vertical is events. In your events.json file, update wherever you reference the verticalKey to events instead of Event.

Updating FAQ Label
You’ve updated the label to the right text, but have not uncommented the relevant line. Remove the // before "label" and you should be good to go!

  "verticalsToConfig": {
    "faqs": { // The vertical key from your search configuration
      // "label": "Frequently Asked Questions", // The name of the vertical in the section header and the navigation bar
      // "verticalLimit": 15, // The result count limit for vertical search
      // "universalLimit": 5, // The result count limit for universal search
      "cardType": "faq-accordion", // The name of the card to use - e.g. accordion, location, customcard 
      "icon": "callout" // The icon to use on the card for this vertical
    }

Hi @afarooque,

I am also having a similar concern as Sarah, when she completed this back in August '20. I found this post and tried correct the issues with when updating the “label” for FAQs. I deleted the // before “label” as you can see from my screenshot attached, but I am unable to complete the Module Assessment as there is still an error.

Would you mind taking a second to look? Thank you!

Best,
Miriam

Hi Miriam,

The code in your screenshot looks correct, but when I log in to your account, I don’t see that change made. Please be sure to commit your code before submitting! Let me know if you have any issues.