Make sure you are editing the UI config in the dist folder of the built nitro files as well as the source. If you only change source, that is why you are rebuilding.I can't find this option can you show me a screenshot..
Thank you for replying. I'm using nitro, cosmic, dbeaver. Do I find it in the database(which table?) or than in the external variables (which line?)Well depending on the emulator you are using it can be set in the database or the external variables file
Who would've thought that. Man thanks alot!its in ui-config.json
the parts referencing reception
Okay, I just edited the png of the building to make it a red color in paint, saved it to test if it works but nothing changed? Do I need to recompile or something?its in ui-config.json
clear your cache and reloadWho would've thought that. Man thanks alot!
Post automatically merged:
Okay, I just edited the png of the building to make it a red color in paint, saved it to test if it works but nothing changed? Do I need to recompile or something?
Like the above just said. If you're using Cosmic CMS and alter anything, make sure to go into housekeeping, in the top right click where is says "Welcome, %username%" and a drop down box will show. Click "Clear Cache".Who would've thought that. Man thanks alot!
Post automatically merged:
Okay, I just edited the png of the building to make it a red color in paint, saved it to test if it works but nothing changed? Do I need to recompile or something?
I was clearing the cache in chrome the entire time. Thanks for your great advice.Like the above just said. If you're using Cosmic CMS and alter anything, make sure to go into housekeeping, in the top right click where is says "Welcome, %username%" and a drop down box will show. Click "Clear Cache".
Hey thanks for this! Gonna try it out.It's indeed in the ui-config.json.
Also an easy way, right click the background image you want to replace, open in new tab and checkout the directory and filename in the URL bar.
Name your new background the same way and replace it in the folder you see in the bar ;-)
Maybe even better..I was clearing the cache in chrome the entire time. Thanks for your great advice.
Post automatically merged:
Hey thanks for this! Gonna try it out.
I did exactly this but the background didn't update..Like the above just said. If you're using Cosmic CMS and alter anything, make sure to go into housekeeping, in the top right click where is says "Welcome, %username%" and a drop down box will show. Click "Clear Cache".
To be sure, open a new private tab or better a different browserI did exactly this but the background didn't update..
Thanks, I did this but still the background images didn't update? The ONLY solution I found is recompiling nitro by going into cmd and typingTo be sure, open a new private tab or better a different browser
Are you sure it matches the right file in the UI config? See the section for the backgrounds (eg US-left.png etc) these files are often in the /images/reception/ directory.Thanks, I did this but still the background images didn't update? The ONLY solution I found is recompiling nitro by going into cmd and typing
cd C:\inetpub\wwwroot\Cosmic\public\client\html5\nitro-client
yarn build-prod
But it takes like 2 minutes everytime for this so that's why I want to know how you guys do it with the ''clear cache'' method. It doesn't seem to work for me.
Yes I'm 100% sure because the images do change in the hotel view when I recompile after editing the UI.config. So I don't know why that's the only way for me to update the hotel view.Are you sure it matches the right file in the UI config? See the section for the backgrounds (eg US-left.png etc) these files are often in the /images/reception/ directory.
Recompiling is no problem, but only "useful" when you make changes to the client. All it does is compile all raw files into smaller stuff into /dist/ (distribution)
Good! To be sure, open your hotelview. Right-click one of the changed background images, open in a new tab and refresh the tab! That way it should always load the "latest version" of that file. Apart from the clientYes I'm 100% sure because the images do change in the hotel view when I recompile after editing the UI.config. So I don't know why that's the only way for me to update the hotel view.
What I do is: edit the images in ''C:\inetpub\wwwroot\Cosmic\public\client\html5\nitro-assets\images\reception''
Then in UI.config at the section for backgrounds I only change the name of the png file. Also at the end of the name I add .png then I save the UI.config.
Then I clear cache. and close my browser and open it again and enter the hotel. And nothing changed..nothing got updated. What am I doing wrong here?
I don't see the ''option open in a new tab when I right click on the image on my browser.Good! To be sure, open your hotelview. Right-click one of the changed background images, open in a new tab and refresh the tab! That way it should always load the "latest version" of that file. Apart from the client
No worries, open up the "Developers Console" in your browser (Chrome, Firefox, Brave) and use the "Inspect" tool top and select the background image. It should present an URL on the "code" sideI don't see the ''option open in a new tab when I right click on the image on my browser.
I can't find this option can you show me a screenshot..No worries, open up the "Developers Console" in your browser (Chrome, Firefox, Brave) and use the "Inspect" tool top and select the background image. It should present an URL on the "code" side
Make sure you are editing the UI config in the dist folder of the built nitro files as well as the source. If you only change source, that is why you are rebuilding.I can't find this option can you show me a screenshot..