PDA

View Full Version : Modifying App Center



SpringBox
2022-05-12, 09:17
Hi guys

Looking to modify the web app center welcome screen experience.

We have made a copy of the file C:\Lianja\cloudserver\tenants\public\wwwroot\login .rsp, modified it and then changed the default page in the Lianja Server Manager to point to our new file.

Rebooted the Server Manager. That works well.

Our amended xxxlogin.rsp file obviously calls appcenter.rsp after login. We have also amended appcenter.rsp and all now works well but presumably updates will overwrite the appcenter.rsp. Is there any way to change which file our xxxlogin.rsp calls so it doesn't get overwritten during an update? Been through the file but there is nothing obvious.

Thanks

Simon

barrymavin
2022-05-12, 10:13
Simon,

You customize the login.rsp and the appcenter.rsp by creating a a custom C:\lianja\cloudserver\tenants\public\wwwroot\tenan t_config.js file

You should not edit the lianja files as these will be overwritten on updating to a new version and contravene our copyright which you should leave alone. ISV licensees are the only ones allowed to change these files.

These is a sample file C:\lianja\cloudserver\tenants\public\wwwroot\_tena nt_config.js which you can rename to tenant_config.js and customize the login and appcenter pages.

If you read that file you will see its quite straightforward.

the example file contains:



var tenant_config = {
"general":
{
"headericon": "img/elephant_icon32.png",
"caption": "Welcome to Lianja",
"background_color": "white",
"color": "orange",
"captioncolor": "black",
"categorycolor": "#407EB8",
"footercolor" : "black",
"navbar_css":"background-color:#333333;",
"_navtabscolor":"gray"
},
"login": {
"caption": "Lianja App Center Login",
"background_image": "url(img/background.png)",
},
"appcenter": {
"caption": "Lianja App Center",
"background_image": "url(img/background.png)",
}
};

SpringBox
2022-05-13, 05:35
Thats great - thanks. Looks good.