Customize frontpage DatafariUI
The text of the frontpage can be easily modified.
All the text is into the translation files.
For a live Datafari
Edit the file /opt/datafari/www/locales/en/translation.json and modify the properties homepage column 1, homepage column 2 and homepage column 3 :
"homepage column 1": "<p> Welcome to the demo of Datafari Enterprise Search. The aim of Datafari is to simplify your daily life at work, by making it easy for you to search for documents and information throughout your company, without the hassle to look silos by silos.</p><p>To begin your search experience, just type one or more keywords in the search bar above, and let Datafari to the work for you. Since this is a demo, please check in the third column for some keywords that have results. Datafari will take you to a results list page, equipped with many functionalities such as facets to navigate through your results.</p><p>Datafari is secured by design, and as such you will only be able to search for the documents that you are allowed to view, and your communications are encrypted via ssl.</p><p>Enjoy your search!</p>",
"homepage column 2": "<p>How to search</p><p>You are probably familiar with web search paradigms, and Datafari inspires from it so that your learning curve gest as short as need be. Similarly to what you can do with your daily web search, just type in one or more keywords in the search bar above.</p><p>By default, Datafari opts for a hidden AND operator, so it will look for the documents that contain all of your keywords, unless you explicitly add an OR operator between keywords. You can find more information about the available search operators in the Help page of the results page.</p><p>Datafari is equipped with an autocomplete functionality, that will propose words that are present in the documents, and that start with the characters you are currently typing. This allows you to gain time, and reduce error by seeing only words that do exist in the search index</p>",
"homepage column 3": "<p>What sources does this Datafari index?</p><p>In this demo, we have indexed an SMB fileshare and two websites. The fileshare contains a corpus from a former utility company, based in the US. So we recommend that you search terms such as “energy”, “utility”, “invoice” or the like. For the websites, we index the Datafari and France Labs websites, so you can search for terms such as “Datafari” or “innovation” for a start.</p><p>Have fun being a Datafarian!</p>",
The changes will be displayed immediately.
It is also possible to add an image instead of the text or not display text at all in a section.
For example, here we replace text of colum 2 by an image and no text for column 3 :
"homepage column 1": "<p> Welcome to the demo of Datafari Enterprise Search. The aim of Datafari is to simplify your daily life at work, by making it easy for you to search for documents and information throughout your company, without the hassle to look silos by silos.</p><p>To begin your search experience, just type one or more keywords in the search bar above, and let Datafari to the work for you. Since this is a demo, please check in the third column for some keywords that have results. Datafari will take you to a results list page, equipped with many functionalities such as facets to navigate through your results.</p><p>Datafari is secured by design, and as such you will only be able to search for the documents that you are allowed to view, and your communications are encrypted via ssl.</p><p>Enjoy your search!</p>",
"homepage column 2":"<p><img src=\"https://francelabs.com/img/logo.png\" /></p>",
"homepage column 3": "",
The result will be :
These properties are only present for English language for now. This means that this text will be displayed for all other languages configured into Datafari. But you can also of course edit the text for another language like in French : /opt/datafari/www/locales/fr/translation.json. In this case, the text of the frontpage will be displayed differently for English or French users.
Source code
Into the DatafariUI project, edit the file public/locales/en/translation.json and modify the properties homepage column 1, homepage column 2 and homepage column 3 :
"homepage column 1": "<p> Welcome to the demo of Datafari Enterprise Search. The aim of Datafari is to simplify your daily life at work, by making it easy for you to search for documents and information throughout your company, without the hassle to look silos by silos.</p><p>To begin your search experience, just type one or more keywords in the search bar above, and let Datafari to the work for you. Since this is a demo, please check in the third column for some keywords that have results. Datafari will take you to a results list page, equipped with many functionalities such as facets to navigate through your results.</p><p>Datafari is secured by design, and as such you will only be able to search for the documents that you are allowed to view, and your communications are encrypted via ssl.</p><p>Enjoy your search!</p>",
"homepage column 2": "<p>How to search</p><p>You are probably familiar with web search paradigms, and Datafari inspires from it so that your learning curve gest as short as need be. Similarly to what you can do with your daily web search, just type in one or more keywords in the search bar above.</p><p>By default, Datafari opts for a hidden AND operator, so it will look for the documents that contain all of your keywords, unless you explicitly add an OR operator between keywords. You can find more information about the available search operators in the Help page of the results page.</p><p>Datafari is equipped with an autocomplete functionality, that will propose words that are present in the documents, and that start with the characters you are currently typing. This allows you to gain time, and reduce error by seeing only words that do exist in the search index</p>",
"homepage column 3": "<p>What sources does this Datafari index?</p><p>In this demo, we have indexed an SMB fileshare and two websites. The fileshare contains a corpus from a former utility company, based in the US. So we recommend that you search terms such as “energy”, “utility”, “invoice” or the like. For the websites, we index the Datafari and France Labs websites, so you can search for terms such as “Datafari” or “innovation” for a start.</p><p>Have fun being a Datafarian!</p>",
Then compile the code.