Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make static pages configurable for each deployment #610

Open
AngelMatilla opened this issue Aug 15, 2023 · 5 comments
Open

Make static pages configurable for each deployment #610

AngelMatilla opened this issue Aug 15, 2023 · 5 comments

Comments

@AngelMatilla
Copy link

In the current repo there's a list of static pages, including the home page that are hardcoded as js and css files.
You can find most of them (maybe all) here: https://github.com/chemins-de-la-transition/semapps/tree/master/frontoffice/src/pages

It would be necessary for the Regen4all project to be able to modify those pages (including the links to other pages).

My proposal (does not need to be the final solution) is that we make the URLs to the static pages configurable and that we locate the js and css files outside of the main repo (in order not to have to fork for each new project / implementation. Maybe not all files need to be located outside of the repo, and only those with content are the ones that can be removed.

A more elegant but also complex solution would be to make the pages configurable within the backoffice, but it might be too much effort for the desired result.

@srosset81
Copy link
Collaborator

srosset81 commented Aug 17, 2023

The HomePage and AboutPage are the only pages specific to CDLT.
All other pages (for example https://lescheminsdelatransition.org/Page/mentions-legales/show) are markdown-formatted pages which can be edited on the backoffice.

@AngelMatilla
Copy link
Author

What about the texts on the following pages:

In any case, it would be important to be able to customize the Home Page and About Page for our instance, so either we decide to fork the repo, or we create another sub-repo just with the pages

@VincentFarcy
Copy link
Contributor

What about the texts on the following pages:

yes, all the my...pages only contain a unique title to be translated
And the login/signup page a unique text to be translated

@Tonfa
Copy link
Contributor

Tonfa commented Aug 17, 2023 via email

@srosset81
Copy link
Collaborator

In any case, it would be important to be able to customize the Home Page and About Page for our instance, so either we decide to fork the repo, or we create another sub-repo just with the pages

These two pages are full React pages, so it will require a developer to customize them.
The easiest solution for now would be to put the new HomePage and AboutPage in the /deploy/frontoffice/app/src/pages directory. When the Docker container is built, it will automatically overwrite the default CDLT ones.

@Tonfa Tonfa added this to the v4.0 milestone Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants