In my company, we decided to create a knowledge base of our own but it is not going to be on a public domain. We will build a help widget and share it across our UIs. Here are the requirements:
2-When widget is opened, we would like to fetch knowledge-base contents that are relevant to our current context. We will most probably use user's current URL to fetch the data from the CMS. We need to send some sort of custom field for querying I guess.
3-Should support localisation.
4-Query by versions. This is quite important because we have some customers using our old version of the app and knowledge base content varies accordingly. So, in some of the code branches we somehow have to fetch old versions of the content.
5- We would like to also include a search bar in that widget called "Search anywhere" that would search the whole cms content base for occurances
I like the fact that Payload is code-first and this would allow many customizations but i still would like to get help before I sink my time in
2. This really depends on what you need to fetch, but if you expose the necessary endpoints, there should be no issue here.
5. Have a look at this plugin, it may be what you need for search anywhere:https://github.com/payloadcms/plugin-search
Though, I'd recommend using something like Algolia or Elasticsearch if you have large search needs.
Hey, thanks for the answer. I guess you pasted the wrong url for the search plugin?
Yes, edited 👍