KevinJump/uSync

Custom Set Hide Settings and Everything Section

Opened this issue · 2 comments

Describe the bug
I have a custom set and I need to be able to hide both "Settings" and "Everything" section in that set like so:
image

I've played around with the "DisabledHandlers"...

"DisabledHandlers": [
	"LanguageHandler",
	"DataTypeHandler",
	"TemplateHandler",
	"ContentTypeHandler",
	"MediaTypeHandler",
	"MemberTypeHandler",
	"MacroHandler",
	"DictionaryHandler"
],

But so far I've only manage to hide "Settings" section
image

Also, can we hide the "Export" button per Set too?

image

Expected behavior
Should only be able to see "Content" section with just "Import" button

Hi,,

You can dsiable whole groups in the UI using the UiEnabledGroups property.

  "uSync": {
    "Settings": {
      "UiEnabledGroups": "Content"
    },
 }

you can also turn off what actions a handler is valid for in the settings, but this isn't reflected in the UI and its global (so if you turn of export then nothing gets saved to disk at all.

"Sets": {
  "Default": {
    "HandlerDefaults": {
      "Actions": ["Import"]
    }
  }
}

@KevinJump

Thank you for the response. So there is no way to simply just hid the "Export" button? We just need it to be hidden on particular sets.

Regards,