PROJECT_TITLE setting in 3.0.1?

51 views
Skip to first unread message

LeVon Smoker

unread,
Jul 24, 2018, 10:15:35 AM7/24/18
to Mayan EDMS
Is there no longer a way to set the title of the site in 3.0.1? In 2.7.3 I could set the PROJECT_TITLE setting to something that included my agency name.

(I'd rather not hack the source...)

LeVon Smoker

Prasanjit Biswas

unread,
Jul 25, 2018, 4:23:29 AM7/25/18
to Mayan EDMS
Yes this is exactly what I was asking in here - https://groups.google.com/forum/#!topic/mayan-edms/0QFVje4BRrI
I do remember being able to change Site title in earlier version easily. I don't mean to change code for such small thing. It is just request to change site header with company name without changing any copyright notice. Pls suggest.

vsol...@gmail.com

unread,
Jul 25, 2018, 4:54:53 AM7/25/18
to Mayan EDMS
check the script in base.html

LeVon Smoker

unread,
Jul 25, 2018, 9:07:38 AM7/25/18
to Mayan EDMS
I see where I can make a hard-coded change in the templates, but I don't want to touch the original source. Is there a way for base.html to be overridden?

LeVon Smoker

unread,
Jul 25, 2018, 12:54:13 PM7/25/18
to Mayan EDMS
Figured this out...

I have a custom app for my Mayan overrides. In the 'ready' function in my apps.py, I added a line:
  mayan.__title__ = 'My Fancy Title'

Of course at the top of apps.py, you'll need:
import mayan


Roberto Rosario

unread,
Aug 20, 2018, 12:41:55 AM8/20/18
to Mayan EDMS
We added a new configuration option to make this easier for users. Starting from the next version you can change is via the  COMMON_PROJECT_TITLE setting option (https://gitlab.com/mayan-edms/mayan-edms/blob/versions/next/mayan/apps/common/settings.py#L68)

We are also working on an setting UI update to allow changing these settings from the UI. Users will still need to restart their Mayan install but no console editing will be needed (this feature about 80% done).
Reply all
Reply to author
Forward
0 new messages