<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What is the proper way to install changes to .nxftl configuration templates? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324786#M11787</link>
    <description>&lt;P&gt;I want to enable soft-deletes as described at &lt;A href="http://doc.nuxeo.com/display/public/NXDOC/Deleting+Documents"&gt;Deleting Documents&lt;/A&gt;. I have been able to manually perform the edit to &lt;CODE&gt;default-repository-config.xml.nxftl &lt;/CODE&gt; and have confirmed that it works, but now I wish to store this configuration change in our configuration management system to ensure that our servers are automatically deployed with it.&lt;/P&gt;
&lt;P&gt;As I see it there are at least two options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Overwrite the &lt;CODE&gt;common-base/nxserver/config/default-repository-config.xml.nxftl&lt;/CODE&gt; file with an edited version of my file when the server configuration is deployed.&lt;/LI&gt;
&lt;LI&gt;Configure the repository in our site-specific custom templates.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The second option seems more correct to me, but is there a way to add that one configuration option to the repository configuration that already exists in &lt;CODE&gt;common-base&lt;/CODE&gt; from my own configuration template, or must I still copy the contents of that &lt;CODE&gt;default-repository-config.xml.nxftl&lt;/CODE&gt; file no matter where I load the repository configuration from?&lt;/P&gt;
&lt;P&gt;Thanks for any insight.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jul 2014 18:01:02 GMT</pubDate>
    <dc:creator>Steven_Huwig1</dc:creator>
    <dc:date>2014-07-17T18:01:02Z</dc:date>
    <item>
      <title>What is the proper way to install changes to .nxftl configuration templates?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324786#M11787</link>
      <description>&lt;P&gt;I want to enable soft-deletes as described at &lt;A href="http://doc.nuxeo.com/display/public/NXDOC/Deleting+Documents"&gt;Deleting Documents&lt;/A&gt;. I have been able to manually perform the edit to &lt;CODE&gt;default-repository-config.xml.nxftl &lt;/CODE&gt; and have confirmed that it works, but now I wish to store this configuration change in our configuration management system to ensure that our servers are automatically deployed with it.&lt;/P&gt;
&lt;P&gt;As I see it there are at least two options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Overwrite the &lt;CODE&gt;common-base/nxserver/config/default-repository-config.xml.nxftl&lt;/CODE&gt; file with an edited version of my file when the server configuration is deployed.&lt;/LI&gt;
&lt;LI&gt;Configure the repository in our site-specific custom templates.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The second option seems more correct to me, but is there a way to add that one configuration option to the repository configuration that already exists in &lt;CODE&gt;common-base&lt;/CODE&gt; from my own configuration template, or must I still copy the contents of that &lt;CODE&gt;default-repository-config.xml.nxftl&lt;/CODE&gt; file no matter where I load the repository configuration from?&lt;/P&gt;
&lt;P&gt;Thanks for any insight.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 18:01:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324786#M11787</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-07-17T18:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to install changes to .nxftl configuration templates?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324787#M11788</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The second option is by far the best. Il you need to add things to the default-reposiroty-config.xml.nxftl file, the you have to override it. If you just need to change some configuration values, then you can do it in you nuxeo.conf file or in the nuxeo.default file of your site-specific custom template.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 01:14:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324787#M11788</guid>
      <dc:creator>Damien_Metzler</dc:creator>
      <dc:date>2014-07-18T01:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to install changes to .nxftl configuration templates?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324788#M11789</link>
      <description>&lt;P&gt;So in order to override the default, do I use the same component name/extension target/repository name in my own template, copying over the same attributes from the original and adding my own changes? Or is there a way to only apply my changes, in case &lt;CODE&gt;default-repository-config.xml.nxftl&lt;/CODE&gt; changes in a later Nuxeo release in ways that are not relevant to me?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 13:52:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324788#M11789</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-07-18T13:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to install changes to .nxftl configuration templates?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324789#M11790</link>
      <description>&lt;P&gt;Yes, use the same component. You can copy/paste the file in your own template, it will then override the common-base one.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2014 14:18:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324789#M11790</guid>
      <dc:creator>Damien_Metzler</dc:creator>
      <dc:date>2014-07-18T14:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to install changes to .nxftl configuration templates?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324790#M11791</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As said Damien, the first option should be banned. Based on the second option (no change on the original files, use of a custom configuration template), you can:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Duplicate and customize &lt;CODE&gt;default-repository-config.xml.nxftl&lt;/CODE&gt;. You will use the configuration templates system to overwrite the default contribution provided by Nuxeo. The server will only read your file. Keeping it in sync can be done by applying a diff patch to the copy of the original file for every release.&lt;/LI&gt;
&lt;LI&gt;Write your own contribution, not necessarily duplicating the whole original one: depending on your needed changes to &lt;CODE&gt;default-repository-config.xml.nxftl&lt;/CODE&gt;, you may be able to write a custom component in a &lt;CODE&gt;custom-repository-config.xml.nxftl&lt;/CODE&gt; using the &lt;A href="https://github.com/nuxeo/nuxeo-core/blob/master/nuxeo-core-storage-sql/nuxeo-core-storage-sql/src/main/java/org/nuxeo/ecm/core/storage/sql/coremodel/SQLRepositoryService.java"&gt;SQLRepositoryService&lt;/A&gt;'s capabilities of merge and update.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;About the soft-delete case, I didn't check if it was possible to contribute that option in a standalone XML component, in addition to the default configuration... that would be easier.
Else, when a full overwrite of the default contribution is required, only for a few fields, it's worth to suggest an improvement to Nuxeo with a parameterized option easing a service customization.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 16:04:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324790#M11791</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2014-07-21T16:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to install changes to .nxftl configuration templates?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324791#M11792</link>
      <description>&lt;P&gt;I ended up doing a variation of Julien Carsique's first suggestion, basically embedding&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;sed '/&amp;lt;indexing&amp;gt;/i &amp;lt;softDelete enabled=\"true\" /&amp;gt;' \
/var/lib/nuxeo/server/templates/common-base/nxserver/config/default-repository-config.xml.nxftl \
&amp;gt; /nuxeo/templates/local/conf/default-repository-config.xml.nxftl
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in our deployment script.&lt;/P&gt;
&lt;P&gt;As they say, crude but effective.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2014 21:45:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324791#M11792</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-08-13T21:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to install changes to .nxftl configuration templates?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324792#M11793</link>
      <description>&lt;P&gt;FYI for this one I opened [NXP-14961](https&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:32:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-proper-way-to-install-changes-to-nxftl-configuration/m-p/324792#M11793</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-08-14T14:32:44Z</dc:date>
    </item>
  </channel>
</rss>

