Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Set Hide Settings and Everything Section #637

Open
fbpenalosa opened this issue May 14, 2024 · 2 comments
Open

Custom Set Hide Settings and Everything Section #637

fbpenalosa opened this issue May 14, 2024 · 2 comments

Comments

@fbpenalosa
Copy link

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

@KevinJump
Copy link
Owner

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"]
    }
  }
}

@fbpenalosa
Copy link
Author

@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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants