Hello CSPro Users,
I'm using csweb to configure data server for a certain survey here. I don't like seing CSWeb 7.6.0 displayed in the Dashboard. I would like the at the Dashboard Heading to Display something like Malaria 2021. And also a logo.
How do I go about it, I have tried to change it, but it still shows a CSWeb in the dashboard, except on users,apps and data tabs. Can get a guideline or procedure on how I can edit the dashboard?
Thank you
Editing CSWeb Dashboard
-
- Posts: 79
- Joined: August 17th, 2015, 9:32 am
- Location: Dar es Salaam, Tanzania
Editing CSWeb Dashboard
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Re: Editing CSWeb Dashboard
For each twig file in /csweb/app/Resource/views/ you'll want to search for and edit the below snippet.
Then to force the UI to refresh delete the contents of /csweb/var/cache/.
Code: Select all
<a class="navbar-brand" href="{{ path('dashboard') }}">
<img alt="Brand" src="./dist/img/logo.png">
</a>
<p class="title-text-cspro">CSWeb</p>
<p class="version-text-cspro">{{ csproVersion }}</p>
-
- Posts: 79
- Joined: August 17th, 2015, 9:32 am
- Location: Dar es Salaam, Tanzania
Re: Editing CSWeb Dashboard
Thank you Aaron, it works now.
Actually the only problem was the cache files, but I edited all the twigs but still it was not displaying my logo and title. So after deleting the cache files it loads ok now.
Actually the only problem was the cache files, but I edited all the twigs but still it was not displaying my logo and title. So after deleting the cache files it loads ok now.
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com