Difference between revisions of "Open Food Facts Contents"
Antoineb456 (talk | contribs) |
Antoineb456 (talk | contribs) |
||
Line 4: | Line 4: | ||
As of today in August 2024, static pages are stored in the [https://github.com/openfoodfacts/openfoodfacts-web/tree/main openfoodfacts-web] Github repository. Adding a new page, setting it up for translation, deploying it, is not an efficient process. | As of today in August 2024, static pages are stored in the [https://github.com/openfoodfacts/openfoodfacts-web/tree/main openfoodfacts-web] Github repository. Adding a new page, setting it up for translation, deploying it, is not an efficient process. | ||
− | That is why, using WordPress CMS was the [https://github.com/openfoodfacts/openfoodfacts-server/issues/7983 | + | That is why, using WordPress CMS was the natural candidate (see #[https://github.com/openfoodfacts/openfoodfacts-server/issues/7983 7983]), for the following reason: |
* The UI is well known by a lot of people | * The UI is well known by a lot of people |
Revision as of 16:45, 21 August 2024
This page is about managing multilingual static pages.
CMS migration project
As of today in August 2024, static pages are stored in the openfoodfacts-web Github repository. Adding a new page, setting it up for translation, deploying it, is not an efficient process.
That is why, using WordPress CMS was the natural candidate (see #7983), for the following reason:
- The UI is well known by a lot of people
- It is already used for the blog
- It has good support for translation and Crowdin integration
The ultimate goal is to be able to retrieve the translation of a page, just its content, and incorporate it into the site/app. The challenge is also to render the page as close as possible to how it looks in the WordPress editor.
A first experiment to integrate the content of a WordPress page directly into the site was conclusive. (PR #10596)
How to: replace an Openfoodfacts-web page by a Wordpress page
We plan to migrate the pages progressively. Here are the steps to follow :
- Choose a page. Look at openfoodfacts-web Ex: who-we-are
- Go to world.openfoodfacts.org/who-we-are, to see how the page is organized
- Go to the WordPress admin panel in, Pages > Add New Page
- Set the title. And build the page in the editor
- Once finished, save and publish
- The title is different from the original slug who-we-are, go back to the page menu then, on the page > Quick Edit, and change it.
- -
- -
- -
- -
- -