Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Billy 55 posts 266 karma points c-trib
    Jan 17, 2024 @ 13:11
    Billy
    0

    Prevent NoNodes.cshtml override

    Hi, I added a custom view in ~/umbraco/UmbracoWebsite/NoNodes.cshtml to show when there are no nodes present. (Using v13 at the moment)

    After installing uSync this does not work anymore and shows the 'uSync all the things' view.

    enter image description here

    Is there a way to prevent this and keep my own view?

    Thanks for any help provided.

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Jan 17, 2024 @ 16:37
    Kevin Jump
    100

    Hi,

    uSync looks to see if the default configuration value for the splash screen has changed. If it hasn't then it puts the uSync splash screen in.

    https://github.com/KevinJump/uSync/blob/v13%2Fmain/uSync.BackOffice%2FBoot%2FuSyncBootExtension.cs#L29

    So if you customise the splash screen by changing the config value, and putting your custom screen in a different location (see https://docs.umbraco.com/umbraco-cms/reference/configuration/globalsettings) uSync won't overwrite it

    This is the recommended way to replace the splash screen too, because the you don't have to worry about Umbraco overwriting your custom screen when you upgrade it.

  • Billy 55 posts 266 karma points c-trib
    Jan 23, 2024 @ 08:58
    Billy
    0

    Hi Kevin,

    I got it my own view working now with the settings that you mentioned. But this does not work when uSync.Complete is installed? With same setting and uSync.Complete installed it shows the uSync splash screen.

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Jan 23, 2024 @ 09:31
    Kevin Jump
    1

    Hi,

    For reasons unknown (to me and i wrote both!) - uSync.Complete doesn't do the same default config check before setting it 😔

    We will fix that and put it in the next release.

    https://github.com/Jumoo/uSync.Complete.Issues/issues/220

Please Sign in or register to post replies

Write your reply to:

Draft