Publish Virtual Items

Publish Virtual Items

PublishVirtualItems

  • A configuration setting that indicates whether Sitecore should publish virtual items as if they were normal items
  • If this setting is True, Sitecore will copy virtual items to the publishing target.  Once they are copied, the items behave as normal items and the connection between the virtual item and its source no longer exists
  • If this setting is set to false, Sitecore only copies the proxy definitions to the publishing target.  When proxies are enabled on the publishing target database, Sitecore will generate virtual items based on the proxy definition in that database.
  • The preferred setting is false

Configuration Settings

<configuration>

    <sitecore database="SqlServer">

        <databases>

            <database id="master" singleInstance="true" type="Sitecore.Data.Database, Sitecore.Kernel">

                    <publishVirtualItems>true</publishVirtualItems>

            </database>

        </databases>

    </sitecore>

</configuration>