I’m losing a bit my mind cause I’m not sure if I’m doing something wrong but I can’t make the tabs in the search to show the Entity Types I need, instead of the default ones.
As you can see in the screenshots attached, I deleted the Verticals that I don’t need and just left FAQs and Products.
https://www.awesomescreenshot.com/image/16181835?key=96533dfee186147a68bd5502aad40151
However, in the Experience page the default tabs keep showing up and the one I created “Products” doesn’t.
https://www.awesomescreenshot.com/image/16181945?key=a861bec969be6af661d5bd27c54c7a4c
I’ve checked the config.json to see if I was missing something but everything is as expected.
I created new "Publish"es to staging and production and didn’t work, either.
I searched for similar topics on this forum but didn’t find anything. Same on the learning area, I didn’t find anything.
Could you please let me know what can I do to update the tabs?
Thanks!
Hey Mikel!
Great question! For a full, in-depth look at how the Answers Frontend works and interacts with the backend configuration, shown in your first screenshot, I’d recommend taking a look at this training module! That said, I’m happy to provide a quick explanation here as well.
In the frontend, each vertical you see a tab for is represented by two files: a JSON file that controls the frontend configuration of that vertical and a handlebars template file that controls the layout of the page.
In the Code Editor, you’ll find all of your verticals’ JSON configuration files in the “config” folder, and all of the handlebars template files in the “pages” folder. Here is a screenshot for reference, where each vertical such as FAQs, Help Articles, Locations, etc., has these two files:
If you want to remove a vertical from your Answers experience and ensure the tab goes away in the frontend, you will have to delete the two associated files for that vertical, which you can do directly within the Code Editor:
When it comes to adding a new vertical, the same applies. After you add the vertical in the backend configuration, you will need to create the corresponding files on the frontend. To do so in the Code Editor, go to Tools > Jambo Commands > Add Vertical. You can name the page “products”, enter the vertical key of the vertical you created in the backend, and choose the card and template you’d like to use:
Once you click Submit, that vertical will show up as a new tab in the experience!
This Answers Learning Track also has a ton of really helpful information around building and customizing Answers experiences that I’d recommend looking at!
Best,
DJ
Hey DJ, it worked, thanks so much!
1 Like