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

[BUG] Approved Colour Picker #278

Open
lori698 opened this issue Mar 9, 2021 · 1 comment
Open

[BUG] Approved Colour Picker #278

lori698 opened this issue Mar 9, 2021 · 1 comment

Comments

@lori698
Copy link

lori698 commented Mar 9, 2021

Approved colour picker
Ive got the following in my usync config files. However when I import my colour picker still gets over ridden.
Using usync uSync 8 v8.8.3.0
Umbraco version 8.11.1


<?xml version="1.0" encoding="utf-8"?>
<uSync>
  <BackOffice>
    <Folder>~/uSync/v8/</Folder>
    <FlatFolders>True</FlatFolders>
    <ImportAtStartup>False</ImportAtStartup>
    <ExportAtStartup>False</ExportAtStartup>
    <ExportOnSave>False</ExportOnSave>
    <UseGuidFilenames>False</UseGuidFilenames>
    <BatchSave>False</BatchSave>
    <!-- calls a rebuild cache when an import completes
        (for Umbraco 8.3+ recommended value is false)  -->
    <RebuildCacheOnCompletion>False</RebuildCacheOnCompletion>
    <Exporter>
      <HandlerSet>Exporter</HandlerSet>

      <!-- control -->
      <DisableImport>False</DisableImport>

      <!-- ui -->
      <DisableExistingMenuItems>True</DisableExistingMenuItems>



      <!-- checkbox defaults -->
      <IncludeMediaFiles>True</IncludeMediaFiles>
      <IncludeTemplates>False</IncludeTemplates>
      <IncludeLinkedItems>False</IncludeLinkedItems>
      <IncludeDictionaryItems>True</IncludeDictionaryItems>

    </Exporter>
    <!-- handler sets -->
    <HandlerSets default="default" Default="default">
      <Handlers Name="default">
        <Handler Alias="dataTypeHandler" Enabled="true" Actions="All"/>
        <Handler Alias="languageHandler" Enabled="false" Actions="All"/>
        <Handler Alias="macroHandler" Enabled="true" Actions="All"/>
        <Handler Alias="mediaTypeHandler" Enabled="true" Actions="All"/>
        <Handler Alias="memberTypeHandler" Enabled="true" Actions="All"/>
        <Handler Alias="templateHandler" Enabled="true" Actions="All"/>
        <Handler Alias="contentTypeHandler" Enabled="true" Actions="All"/>
        <Handler Alias="contentHandler" Enabled="false" Actions="All"/>
        <Handler Alias="contentTemplateHandler" Enabled="true" Actions="All"/>
        <Handler Alias="dictionaryHandler" Enabled="true" Actions="All"/>
        <Handler Alias="domainHandler" Enabled="false" Actions="All"/>
        <Handler Alias="mediaHandler" Enabled="false" Actions="All"/>
        <Handler Alias="memberHandler" Enabled="false"/>
        <Handler Alias="memberGroupHandler" Enabled="false"/>
        <Handler Alias="userHandler" Enabled="false"/>
        <Handler Alias="userGroupHandler" Enabled="false"/>
        <Handler Alias="dataTypeHandler" Enabled="true" Actions="All">
          <Add Key="NoConfigEditors" Value="Umbraco.ColorPicker" />
        </Handler>

      </Handlers>
      <Handlers Name="exporter">
        <Handler Alias="dataTypeHandler" Enabled="true" />
        <Handler Alias="languageHandler" Enabled="true" />
        <Handler Alias="macroHandler" Enabled="true" />
        <Handler Alias="mediaTypeHandler" Enabled="true" />
        <Handler Alias="memberTypeHandler" Enabled="false" />
        <Handler Alias="templateHandler" Enabled="false" />
        <Handler Alias="contentTypeHandler" Enabled="true" />
        <Handler Alias="contentHandler" Enabled="true" />
        <Handler Alias="contentTemplateHandler" Enabled="true" />
        <Handler Alias="dictionaryHandler" Enabled="true" />
        <Handler Alias="domainHandler" Enabled="true" />
        <Handler Alias="mediaHandler" Enabled="true" />
        <Handler Alias="memberGroupHandler" Enabled="true" />
        <Handler Alias="memberHandler" Enabled="true" />
        <Handler Alias="publicAccessHandler" Enabled="true" />
        <Handler Alias="userGroupHandler" Enabled="true" />
        <Handler Alias="userHandler" Enabled="true" />
        <Handler Alias="dataTypeHandler" Enabled="true" Actions="All">
          <Add Key="NoConfigEditors" Value="Umbraco.ColorPicker" />
        </Handler>
      </Handlers>
      <Handlers Name="publisher">
        <Handler Alias="dataTypeHandler" Enabled="true" Actions="All"/>
        <Handler Alias="languageHandler" Enabled="true" Actions="All"/>
        <Handler Alias="macroHandler" Enabled="true" Actions="All"/>
        <Handler Alias="mediaTypeHandler" Enabled="true" Actions="All"/>
        <Handler Alias="memberTypeHandler" Enabled="true" Actions="All"/>
        <Handler Alias="templateHandler" Enabled="true" Actions="All"/>
        <Handler Alias="contentTypeHandler" Enabled="true" Actions="All"/>
        <!-- publisher only send published content -->
        <Handler Alias="publishedContentHandler" Enabled="true" Actions="All"/>
        <Handler Alias="contentTemplateHandler" Enabled="true" Actions="All"/>
        <Handler Alias="dictionaryHandler" Enabled="true" Actions="All"/>
        <Handler Alias="domainHandler" Enabled="true" Actions="All"/>
        <Handler Alias="mediaHandler" Enabled="true" Actions="All"/>
        <Handler Alias="publicAccessHandler" Enabled="true" Actions="All"/>
        <Handler Alias="mediaFileHandler" Enabled="true" Actions="All">
          <Add Key="IncludeFileHash" Value="true"/>
        </Handler>
        <Handler Alias="dataTypeHandler" Enabled="true" Actions="All">
          <Add Key="NoConfigEditors" Value="Umbraco.ColorPicker" />
        </Handler>


      </Handlers>
    </HandlerSets>
    <ReportDebug>False</ReportDebug>
    <FailOnMissingParent>True</FailOnMissingParent>
    <ShowVersionCheckWarning>True</ShowVersionCheckWarning>
  </BackOffice>
</uSync>
@KevinJump
Copy link
Owner

Hi lori,

in youir config the dataTypeHandler is configured twice.

once at the top and once at the bottom, to get the setting to take effect you will need to remove the top entry for dataTypeHandler as it is taking priority.

<Handlers Name="default">
      <Handler Alias="dataTypeHandler" Enabled="true" Actions="All"/>
      <Handler Alias="languageHandler" Enabled="false" Actions="All"/>
      <Handler Alias="macroHandler" Enabled="true" Actions="All"/>
      <Handler Alias="mediaTypeHandler" Enabled="true" Actions="All"/>
      <Handler Alias="memberTypeHandler" Enabled="true" Actions="All"/>
      <Handler Alias="templateHandler" Enabled="true" Actions="All"/>
      <Handler Alias="contentTypeHandler" Enabled="true" Actions="All"/>
      <Handler Alias="contentHandler" Enabled="false" Actions="All"/>
      <Handler Alias="contentTemplateHandler" Enabled="true" Actions="All"/>
      <Handler Alias="dictionaryHandler" Enabled="true" Actions="All"/>
      <Handler Alias="domainHandler" Enabled="false" Actions="All"/>
      <Handler Alias="mediaHandler" Enabled="false" Actions="All"/>
      <Handler Alias="memberHandler" Enabled="false"/>
      <Handler Alias="memberGroupHandler" Enabled="false"/>
      <Handler Alias="userHandler" Enabled="false"/>
      <Handler Alias="userGroupHandler" Enabled="false"/>
      <Handler Alias="dataTypeHandler" Enabled="true" Actions="All">
        <Add Key="NoConfigEditors" Value="Umbraco.ColorPicker" />
      </Handler>
``

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