Skip to content

Commit f362ace

Browse files
committed
modify login page
1 parent 3ae3aff commit f362ace

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SeaTable Frontend Modification
2+
3+
Seafile offers a wealth of configuration options to enable or disable individual functions in the frontend or to customize the frontend to your own needs.
4+
5+
At the same time, you can only intervene in the design of the frontend to a limited extent with the help of the configuration files. For this, Seafile offers a sophisticated template system to selectively replace individual page areas with their own versions.
6+
7+
This article introduces this form of customizing.
8+
9+
## What can be customized?
10+
11+
Seafile uses predefined HTML templates for almost all web pages and emails, which can be customized. Changes to the base editor are thus not possible, but adjustments to the login page or changes to individual email texts are possible without problems.
12+
13+
The basic idea is simple. You take the files provided by seatable and copy them to a special place outside the container. These copied files can then be customized. If Seafile (after a restart) finds these files, they will be used instead of the original files. The duplicated and customized files are stored outside the Seafile docker container, so that the customizations survive an update of seafile.
14+
15+
## Customize the login page
16+
17+
All files below `/opt/seafile/seafile-server-latest/seahub/seahub/templates` (this is the path inside the container) can be customized. Here is an example how to customize the login page.
18+
19+
```
20+
# copy the file from inside the container to the seafile-compose folder
21+
cd /opt/seafile-compose
22+
docker cp seafile-server:/opt/seafile/seafile-server-latest/seahub/seahub/templates/registration/login.html ./
23+
```
24+
25+
Then modify login.html according to you needs and then mount it into the container.
26+
27+
```yml
28+
services:
29+
seafile:
30+
# ...
31+
volumes:
32+
- - ./login.html:/shared/seafile/seahub-data/custom/templates/registration/login.html:ro
33+
```
34+
35+
After a restart, the new login page will be used.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ nav:
163163
- Logo: customization/logo.md
164164
- Main Color: customization/main-color.md
165165
- Custom CSS: customization/custom-css.md
166+
- Page Templates: customization/page-templates.md
166167

167168
- Administration: administration/index.md
168169
## TODO:

0 commit comments

Comments
 (0)