Copied to clipboard

Flag this post as spam?

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


  • omar 1 post 71 karma points
    Oct 15, 2021 @ 19:14
    omar
    0

    Usync content edition is not excluding content nodes specified in config files thorugh path values

    Hi!

    I have basically been trying to solve this issue all day and i m really stuck, wish someone could help me out..

    Im trying to exclude this node from being exported to my disk : enter image description here

    Here are my config settings in usync.config :

        <HandlerSets default="default" Default="default">
      <Handlers Name="default">
        <Handler Alias="dataTypeHandler" Enabled="false" Actions="All" />
        <Handler Alias="languageHandler" Enabled="false" Actions="All" />
        <Handler Alias="macroHandler" Enabled="false" Actions="All" />
        <Handler Alias="mediaTypeHandler" Enabled="false" Actions="All" />
        <Handler Alias="memberTypeHandler" Enabled="false" Actions="All" />
        <Handler Alias="templateHandler" Enabled="false" Actions="All" />
        <Handler Alias="contentTypeHandler" Enabled="true" Actions="All" />
        <Handler Alias="contentHandler" Enabled="true" Actions="All">
          <Add Key="Exclude" Value="/" />
          <!--to check rules on both import and export make sure you have the RulesOnExport value set to true.-->
          <Add Key="RulesOnExport" Value="true" />
          <Settings>
            <Add Key="Exclude" Value="/include-me" />
            <Add Key="RulesOnExport" Value="true" />
          </Settings>
        </Handler>
        <Handler Alias="contentTemplateHandler" Enabled="false" Actions="All" />
        <Handler Alias="dictionaryHandler" Enabled="false" Actions="All" />
        <Handler Alias="domainHandler" Enabled="false" Actions="All" />
        <Handler Alias="mediaHandler" Enabled="false" Actions="All" />
      </Handlers>
    </HandlerSets>
    

    As what you see on the contentHandler i have path value /include-me , i have tried all kind of combination and none of them works .. the file synced to visual studio is called include-me.config

    WHat Im i doing wrong here ?

    Thanks!

  • Kevin Jump 2146 posts 13582 karma points MVP 6x c-trib
    Oct 15, 2021 @ 21:01
    Kevin Jump
    0

    Hi,

    Assuming latest version of uSync v8 (although this hasn't changed in a while)

    The path value will have been sanitized a bit, so i suspect its' /includeMe

    you can actually see what the path uSync will use as it will be in the usync config file of the item you are trying to exclude e.g. from the starter kit

    <Info>
      <Parent Key="1d770f10-d1ca-4a26-9d68-071e2c9f7ac1">Blog</Parent>
      <Path>/Home/Blog/MyBlogPost</Path>
      <Trashed>false</Trashed>
    

    the path for this would be /Home/Blog/MyBlogPost

    Settings go in the root of the handler (there is no Settings bit)

    just checked and the following does exclude the "About Us" (and all child pages) section on a fresh install.

    <Handler Alias="contentHandler" Enabled="true">
      <Add Key="Exclude" Value="/Home/AboutUs" />
      <Add Key="RulesOnExport" Value="true" />
    </Handler>
    
Please Sign in or register to post replies

Write your reply to:

Draft