@dkayiwa I don’t understand what you mean by the name of the log file. What I sent was the server log @darius requested, and which is also what I put on pastebin.com. Anyway, I have been able to fix the problem now: login page successfully overridden.
One more thing, @dkayiwa and @darius the solution doesn’t work for the admin page. Without any intention to exhaust you guys, please could you help with means or ways I could override the admin page with custom logos and images.
Thanks a lot @dkayiwa and @darius. @darius I want to achieve the openmrs logo override one time, automatically if I could call it that, whenever I start a new instance.
@dkayiwa, I have tried your suggestion but it didn’t work. Now let me be detailed about what I did. I created a package in the omod section of openmrs-module-mapperoverridedemo (which I forked on github): src/main/org/openmrs/modules/mapperoverridedemo/overrideadminpage. And there I put the class CopyLegacyUiContentToWebInf.java. After doing this, building and dropping the omod file in the modules directory of my instance, I got the same result; old logo still present. I still want to get this to work. I really need help to do it right.
Also, what I was asking is if I could use a json file like the one below which @darius pointed out to me a while back, and which was useful in overriding the other logos:
[{
“id”: “overrideSettings”,
“extensions”: [
{
“id”: “override.configureStandardHeader”,
“extensionPointId”: “org.openmrs.module.appui.header.config”,
“type”: “config”,
“extensionParams”: {
“logo-icon-url”: “/ms/uiframework/resource/mapperoverridedemo/images/smartacareLogo.png”
}
}
]
}]
where the id, and extensionPointId have values required to change the admin Logo.
I will continue to explore all the means until I get success. Thanks
Thanks for your timely response @dkayiwa. Yes I have tried the custom branding module, but the effect is not immediate and with that there’s no way to tell it worked. We want something that can be done once: we build the function into a module, and drop the module in the modules directory before starting the instance the first time. That way, we can deploy to many clients without having to do manual changes.
In your class CopyLegacyUiContentToWebInf, i see so many lines. Are they all supposed to be copying only those two images that you would like to override? If not, can you remove all the unnecessary lines such that i look at only those of value?