Answers Module 13 Challenge Help

Hi,

I keep getting the same report card error and cant seem to find the right fix.

Any thoughts on why its not working? thank you!!!

Hi Cori,

You’re SO close and this is one of the hardest challenges. Sorry for the bad description for this rule, I’ll fix that. This rule checks to make sure that the “communitystories.json” file has:

  • verticalKey set to “community_stories”
  • the pageTitle is set to “Community Story Search”
  • the verticalsToConfig.label is set to “Community Stories”
  • the verticalsToConfig.cardType is set to your new “communitystory” card

It looks like you’re failing based on the first one - the verticalKey. Before the Fall '20 release, the rules had the verticalKey as “communityStories” but we updated the recommended behavior for vertical keys to use underscores instead of camelcase. If you update that you should be good.

Thanks,
Liz

Hi Liz,

Any Ideas of what I might be doing wrong here?

{
  "verticalKey": "community_stories", // The vertical key from your search configuration
  "pageTitle": "Community Story Search", // !!!REPLACE THIS VALUE!!! The contents of the title tag and meta open graph tag for title
  // "metaDescription": "", // The meta tag for open graph description
  // "canonicalUrl": "", // The link tag for canonical URL as well as the meta tag for open graph url
  // "keywords": "", // The meta tag for keywords
  "pageSettings": {
    /**
     "search": {
       "verticalKey": "community_stories", // The vertical key from your search configuration
       "defaultInitialSearch": "" // Enter a default search term
     }
    **/
  },  
  "componentSettings": {
    /**
    "QASubmission": {
      "entityId": "", // Set the ID of the entity to use for Q&A submissions, must be of entity type "Organization"
      "privacyPolicyUrl": "" // The fully qualified URL to the privacy policy
    },
    **/
    /**
    "Facets": {
      "expand": false, // Allow the user to expand and collapse the facets
      "showMore": false, // Display a link to see more facet options within a facet
      "searchOnChange": true // Will automatically run a search as facets are selected or unselected. Set to false to only trigger updates with an Apply button. 
      // Additional options are available in the documentation
    },
    **/
    /**
    "FilterLink": {
      "changeFiltersText": "sorts and filters", // Text that displays by default
      "resetFiltersText": "reset filters", // Text when filters are applied
      "clearSearchText": "clear search" // Text when there are no results, conducts an empty search
    },
    **/
    "AppliedFilters": {
      "removable": true
    },
    "VerticalResults": {
      "noResults": {
        "displayAllResults": true // Optional, whether to display all results in the vertical when no results are found.
      },
      "hideResultsHeader": true
    },
    "SearchBar": {
      "placeholderText": "Search", // The placeholder text in the answers search bar
      "allowEmptySearch": true // Allows users to submit an empty search in the searchbar
    },
    "Pagination": {
      "noResults": {
        "visible": true 
      }
    }
  },
  // Configuration used to define the look and feel of the vertical, both on this page and, by default,
  // on the universal page.
  "verticalsToConfig": {
    "community_stories": { // The vertical key from your search configuration
      // "label": "Community Stories", // 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": "communitystory", // The name of the card to use - e.g. accordion, location, customcard 
      "icon": "star", // The icon to use on the card for this vertical
      "universalSectionTemplate": "standard"
    }
  }
}

Thank you!

Hi Liz,
I updated the verticalKey to match yours but it still is giving me the same report card error even after committing. Any other suggestions?

{
“verticalKey”: “community_stories”, // The vertical key from your search configuration
“pageTitle”: “Community Story Search”, // !!!REPLACE THIS VALUE!!! The contents of the title tag and meta open graph tag for title
// “metaDescription”: “”, // The meta tag for open graph description
// “canonicalUrl”: “”, // The link tag for canonical URL as well as the meta tag for open graph url
// “keywords”: “”, // The meta tag for keywords
“pageSettings”: {
/**
“search”: {
“verticalKey”: “”, // The vertical key from your search configuration
“defaultInitialSearch”: “” // Enter a default search term
}
/
},
“componentSettings”: {
/

“QASubmission”: {
“entityId”: “”, // Set the ID of the entity to use for Q&A submissions, must be of entity type “Organization”
“privacyPolicyUrl”: “” // The fully qualified URL to the privacy policy
},
/
/

“Facets”: {
“expand”: false, // Allow the user to expand and collapse the facets
“showMore”: false, // Display a link to see more facet options within a facet
“searchOnChange”: true // Will automatically run a search as facets are selected or unselected. Set to false to only trigger updates with an Apply button.
// Additional options are available in the documentation
},
/
/

“FilterLink”: {
“changeFiltersText”: “sorts and filters”, // Text that displays by default
“resetFiltersText”: “reset filters”, // Text when filters are applied
“clearSearchText”: “clear search” // Text when there are no results, conducts an empty search
},
**/
“AppliedFilters”: {
“removable”: true
},
“VerticalResults”: {
“noResults”: {
“displayAllResults”: true // Optional, whether to display all results in the vertical when no results are found.
},
“hideResultsHeader”: true
},
“SearchBar”: {
“placeholderText”: “Search”, // The placeholder text in the answers search bar
“allowEmptySearch”: true // Allows users to submit an empty search in the searchbar
},
“Pagination”: {
“noResults”: {
“visible”: true
}
}
},
// Configuration used to define the look and feel of the vertical, both on this page and, by default,
// on the universal page.
“verticalsToConfig”: {
“communityStories”: { // The vertical key from your search configuration
“label”: “Community Stories”, // 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”: “communitystory”, // The name of the card to use - e.g. accordion, location, customcard
“icon”: “star” // The icon to use on the card for this vertical
}
}
}

Hi Cori,

The verticalKey is in two places - in the top level of the file (line 2) and also in the verticalsToConfig object (line 59). If you update it there, this should go through!

Thanks,
Liz