Copied to clipboard

Flag this post as spam?

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


  • Weeda Lostitmonton 7 posts 87 karma points
    Dec 03, 2021 @ 03:07
    Weeda Lostitmonton
    0

    Starting Node gets overriden for Media picker using Usync import (Umbraco v9)

    Hi there,

    I am having an issue of the StartNodeId getting overriden during usync import on the test server.

    The media are manually added in each environment. Every time I deploy, the starting node of the media picker gets overriden when I import using Usync.

    Is there a way to fix this?

    enter image description here

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Dec 03, 2021 @ 09:27
    Kevin Jump
    100

    Hi,

    If you have certain data types that you don't want to be overwritten by uSync you can exclude them by alias (or by editor type) in the config.

    http://usync.jumoo.co.uk/docs/reference/handlers#handler-settings

    For example: In the config you can stop the config from being synced by uSync by either: The name of the datatypes (comma separated list). or the Actual Property Editor (again comma separated).

    "uSync" :{
        "Sets": {
            "Default": {
                "Handlers": {
                    "DataTypeHandler" : {
                        "Settings" : {
                            "NoConfigNames": "About Us - Work Environment Image Picker",
                            "NoConfigEditor", "Umbraco.MediaPicker"
                        }
                    }
                }
            }
        }
    }
    
  • Weeda Lostitmonton 7 posts 87 karma points
    Dec 05, 2021 @ 22:08
    Weeda Lostitmonton
    0

    Thank you for your reply Kevin!

    I have added the following to appsettings.json and it worked.

     "uSync": {
    "Settings": {
      "ExportOnSave": "None",
      "UIEnabledGroups": "Settings"
    },
    "Sets": {
      "Default": {
        "HandlerDefaults": {
          "Settings": {
            "IgnoreAliases": "About Us - Work Environment Image Picker"
          }
        }
      }
    }
    

    }

    However, the following didn't work, wondering if I did something wrong:

    "uSync": {
    "Settings": {
      "ExportOnSave": "None",
      "UIEnabledGroups": "Settings"
    },
    "Sets": {
      "Default": {
        "Handlers": {
          "DataTypesHandler": {
            "Settings": {
              "NoConfigNames": "About Us - Work Environment Image Picker",
              "NoConfigEditors": "Umbraco.MediaPicker3"
            }
          }
        }
      }
    }
    

    }

Please Sign in or register to post replies

Write your reply to:

Draft