<?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 Re: Hide the &amp;quot;Comments&amp;quot; and &amp;quot;Activity&amp;quot; section from the Document View in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320972#M7973</link>
    <description>&lt;P&gt;Hi, &lt;A href="https://app.quandora.com/object/b0011555-846d-404a-b4a4-85bc56946f40"&gt;Rodri &lt;/A&gt;!
I managed to enable Anonymous user with the following contribution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="org.nuxeo.ecm.platform.login.anonymous.config"&amp;gt;

  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.defaultConfig&amp;lt;/require&amp;gt;
  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.WebEngineConfig&amp;lt;/require&amp;gt;
  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService&amp;lt;/require&amp;gt;
	
  &amp;lt;!-- Add an Anonymous user --&amp;gt;
  &amp;lt;extension target="org.nuxeo.ecm.platform.usermanager.UserService"
    point="userManager"&amp;gt;
    &amp;lt;userManager&amp;gt;
      &amp;lt;users&amp;gt;
        &amp;lt;anonymousUser id="Guest"&amp;gt;
          &amp;lt;property name="firstName"&amp;gt;Guest&amp;lt;/property&amp;gt;
          &amp;lt;property name="lastName"&amp;gt;User&amp;lt;/property&amp;gt;
        &amp;lt;/anonymousUser&amp;gt;
      &amp;lt;/users&amp;gt;
    &amp;lt;/userManager&amp;gt;
  &amp;lt;/extension&amp;gt;

  &amp;lt;extension
    target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
    point="chain"&amp;gt;
    &amp;lt;authenticationChain&amp;gt;
      &amp;lt;plugins&amp;gt;
        &amp;lt;plugin&amp;gt;BASIC_AUTH&amp;lt;/plugin&amp;gt;
	&amp;lt;plugin&amp;gt;FORM_AUTH&amp;lt;/plugin&amp;gt;
	&amp;lt;plugin&amp;gt;ANONYMOUS_AUTH&amp;lt;/plugin&amp;gt;
      &amp;lt;/plugins&amp;gt;
    &amp;lt;/authenticationChain&amp;gt;
  &amp;lt;/extension&amp;gt;	
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Don't forget to add your contribution in the MANIFEST.MF of your bundle, something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Bundle-ActivationPolicy: lazy
------
------
Nuxeo-Component: OSGI-INF/anonymous-auth-config.xml

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also had the same problem as you and asked in stackoverflow without adequate answer:
&lt;A href="https://stackoverflow.com/questions/57058139/nuxeo-after-activating-the-anonymous-user-cant-log-in"&gt;https://stackoverflow.com/questions/57058139/nuxeo-after-activating-the-anonymous-user-cant-log-in&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The problem persists on my test Windows 10 installation, but on the ubuntu server installation the same contribution works ok without any issues. The odd thing I discovered by chance is that opening an **incognito window ** on my local Windows installation works fine, giving me the ability to log as Administrator and as the Guest!&lt;/P&gt;</description>
    <pubDate>Sun, 16 Feb 2020 18:25:20 GMT</pubDate>
    <dc:creator>Anton_Petrov</dc:creator>
    <dc:date>2020-02-16T18:25:20Z</dc:date>
    <item>
      <title>Hide the "Comments" and "Activity" section from the Document View</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320968#M7969</link>
      <description>&lt;P&gt;I need to hide the "Comments" and "Activity" section in the Document View and also disable all the corresponding actions for the Anonymous user - not to view nor write comments on any documents in any domain. I can not find a way to manage this in the nuxeo-web-ui-bundle.html through the slots. I'm not using Studio. Any ideas would be highly appreciated, thanks in advance!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Comments section"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1904i270B439A92D22407/image-size/large?v=v2&amp;amp;px=999" role="button" title="Comments section" alt="Comments section" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 15:57:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320968#M7969</guid>
      <dc:creator>Anton_Petrov</dc:creator>
      <dc:date>2020-02-12T15:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the "Comments" and "Activity" section from the Document View</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320969#M7970</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You  have to override the default &lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/document/nuxeo-document-page.html"&gt;nuxeo-document-page.html&lt;/A&gt;
So, basically:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create in your Designer resources a copy of this element, rename it, and comment the part you need to remove&lt;/LI&gt;
&lt;LI&gt;Reference your new element in your custom bundle&lt;/LI&gt;
&lt;LI&gt;Add a slot contibution in the same file like:&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-slot-content name="documentViewPage" slot="DOCUMENT_VIEWS_PAGES" order="10"&amp;gt;
  &amp;lt;template&amp;gt;
    &amp;lt;nuxeo-filter document="[[document]]" expression="document.facets.indexOf('Folderish') === -1
                                                   &amp;amp;&amp;amp; document.facets.indexOf('Collection') === -1"&amp;gt;
      &amp;lt;template&amp;gt;
        &amp;lt;nuxeo-document-page-v2 name="view" document="[[document]]" opened&amp;gt;&amp;lt;/nuxeo-partners-document-page-v2&amp;gt;
      &amp;lt;/template&amp;gt;
    &amp;lt;/nuxeo-filter&amp;gt;
  &amp;lt;/template&amp;gt;
&amp;lt;/nuxeo-slot-content&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Et voilà!&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 12 Feb 2020 17:16:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320969#M7970</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-02-12T17:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the "Comments" and "Activity" section from the Document View</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320970#M7971</link>
      <description>&lt;P&gt;Thanks, Gregory, but I'm not using Studio and Designer. And I can't find "nuxeo-document-page.html" on my server too...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 06:40:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320970#M7971</guid>
      <dc:creator>Anton_Petrov</dc:creator>
      <dc:date>2020-02-13T06:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the "Comments" and "Activity" section from the Document View</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320971#M7972</link>
      <description>&lt;P&gt;Hello [Anton Petrov](https&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 10:28:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320971#M7972</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-02-15T10:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the "Comments" and "Activity" section from the Document View</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320972#M7973</link>
      <description>&lt;P&gt;Hi, &lt;A href="https://app.quandora.com/object/b0011555-846d-404a-b4a4-85bc56946f40"&gt;Rodri &lt;/A&gt;!
I managed to enable Anonymous user with the following contribution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="org.nuxeo.ecm.platform.login.anonymous.config"&amp;gt;

  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.defaultConfig&amp;lt;/require&amp;gt;
  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.WebEngineConfig&amp;lt;/require&amp;gt;
  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService&amp;lt;/require&amp;gt;
	
  &amp;lt;!-- Add an Anonymous user --&amp;gt;
  &amp;lt;extension target="org.nuxeo.ecm.platform.usermanager.UserService"
    point="userManager"&amp;gt;
    &amp;lt;userManager&amp;gt;
      &amp;lt;users&amp;gt;
        &amp;lt;anonymousUser id="Guest"&amp;gt;
          &amp;lt;property name="firstName"&amp;gt;Guest&amp;lt;/property&amp;gt;
          &amp;lt;property name="lastName"&amp;gt;User&amp;lt;/property&amp;gt;
        &amp;lt;/anonymousUser&amp;gt;
      &amp;lt;/users&amp;gt;
    &amp;lt;/userManager&amp;gt;
  &amp;lt;/extension&amp;gt;

  &amp;lt;extension
    target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
    point="chain"&amp;gt;
    &amp;lt;authenticationChain&amp;gt;
      &amp;lt;plugins&amp;gt;
        &amp;lt;plugin&amp;gt;BASIC_AUTH&amp;lt;/plugin&amp;gt;
	&amp;lt;plugin&amp;gt;FORM_AUTH&amp;lt;/plugin&amp;gt;
	&amp;lt;plugin&amp;gt;ANONYMOUS_AUTH&amp;lt;/plugin&amp;gt;
      &amp;lt;/plugins&amp;gt;
    &amp;lt;/authenticationChain&amp;gt;
  &amp;lt;/extension&amp;gt;	
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Don't forget to add your contribution in the MANIFEST.MF of your bundle, something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Bundle-ActivationPolicy: lazy
------
------
Nuxeo-Component: OSGI-INF/anonymous-auth-config.xml

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also had the same problem as you and asked in stackoverflow without adequate answer:
&lt;A href="https://stackoverflow.com/questions/57058139/nuxeo-after-activating-the-anonymous-user-cant-log-in"&gt;https://stackoverflow.com/questions/57058139/nuxeo-after-activating-the-anonymous-user-cant-log-in&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The problem persists on my test Windows 10 installation, but on the ubuntu server installation the same contribution works ok without any issues. The odd thing I discovered by chance is that opening an **incognito window ** on my local Windows installation works fine, giving me the ability to log as Administrator and as the Guest!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 18:25:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320972#M7973</guid>
      <dc:creator>Anton_Petrov</dc:creator>
      <dc:date>2020-02-16T18:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the "Comments" and "Activity" section from the Document View</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320973#M7974</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;thank you &lt;A href="https://app.quandora.com/object/6ac57d57-5a4d-452a-93a3-95ca89435a6e"&gt;Anton Petrov&lt;/A&gt; for the information to use the anonymous authentication. In my case, even in "incognito" window in Chrome, it didn't work. I needed to clear my cookies everytime I wanted to login as Administrator. I think there is a bug for windows in this authentication method.&lt;/P&gt;
&lt;P&gt;Anyway, I have been trying to hide the Comments and Activity sections from the document view without success, and I don't know if it is possible. As &lt;A href="https://app.quandora.com/object/135ad47b-aef0-4483-af06-b2ef2500fbad"&gt;Gregory Carlin&lt;/A&gt; said, I have created my own "nuxeo-document-page" contribution like follows:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;First, I have created my own dom-module, copy of the "nuxeo-document-page" module (this module is defined inside the "elements.html" file, in ${NUXEO_HOME}/nxserver/nuxeo.war/ui). I named the module "nuxeo-document-page-v2", and the file was "nuxeo-document-page-v2.html":&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dom-module id="nuxeo-document-page-v2" assetpath="document/"&amp;gt;
  &amp;lt;template&amp;gt;
    &amp;lt;style include="nuxeo-styles"&amp;gt;
      #details {
        width: 28px;
        height: 28px;
        padding: 5px;
        opacity: 0.3;
        margin: 6px 0;
      }

      :host([opened]) #details {
        opacity: 1;
        margin-left: 6px;
      }

      #documentViewsItems {
        @apply --layout-horizontal;
        --paper-listbox-background-color: transparent;
      }

      #documentViewsItems &amp;gt; [name='comments'] {
        margin: 0;
      }

      .scrollerHeader {
        @apply --layout-horizontal;
      }

      :host([opened]) .scrollerHeader {
        box-shadow: 0 3px 5px rgba(0,0,0,0.04) !important;
        border-radius: 0;
        background-color: var(--nuxeo-box) !important;
      }

      .page {
        @apply --layout-horizontal;
      }

      .main {
        @apply --layout-vertical;
        @apply --layout-flex-2;
        padding-right: 8px;
        overflow: hidden;
      }

      :host([opened]) .main {
        padding-right: 16px;
      }

      .side {
        @apply --layout-vertical;
        position: relative;
        margin-bottom: var(--nuxeo-card-margin-bottom, 16px);
        min-height: 60vh;
      }

      :host([opened]) .side {
        @apply --layout-flex;
      }

      .scroller {
        @apply --nuxeo-card;
        margin-bottom: 0;
        overflow: auto;
        display: none;
        left: 0;
        top: 36px;
        right: 0;
        bottom: 0;
        position: absolute;
      }

      :host([opened]) .scroller {
        display: block;
      }

      .section {
        margin-bottom: 32px;
      }

      .section:last-of-type {
        margin-bottom: 64px;
      }

      nuxeo-document-view {
        --nuxeo-document-content-margin-bottom: var(--nuxeo-card-margin-bottom);
      }

      @media (max-width: 1024px) {
        #details {
          opacity: 1;
          margin-left: 6px;
          cursor: default;
        }

        .scrollerHeader {
          box-shadow: 0 3px 5px rgba(0,0,0,0.04) !important;
          font-family: var(--nuxeo-app-font);
          border-radius: 0;
          background-color: var(--nuxeo-box) !important;
        }

        .page {
          @apply --layout-vertical;
        }

        .main,
        :host([opened]) .main {
          padding: 0;
          max-width: initial;
          margin-right: 0;
        }

        .side {
          padding: 0;
          max-width: initial;
          min-height: initial;
          display: block;
          margin-bottom: 16px;
        }

        .scroller {
          top: 0;
          position: relative;
          display: block;
        }
      }
    &amp;lt;/style&amp;gt;

    &amp;lt;nuxeo-document-info-bar document="[[document]]"&amp;gt;&amp;lt;/nuxeo-document-info-bar&amp;gt;

    &amp;lt;div class="page"&amp;gt;

      &amp;lt;div class="main"&amp;gt;
        &amp;lt;nuxeo-document-view document="[[document]]"&amp;gt;&amp;lt;/nuxeo-document-view&amp;gt;
      &amp;lt;/div&amp;gt;

      &amp;lt;div class="side"&amp;gt;
        &amp;lt;div class="scrollerHeader"&amp;gt;
          &amp;lt;paper-icon-button id="details" noink="" icon="nuxeo:details" on-tap="_toggleOpened"&amp;gt;&amp;lt;/paper-icon-button&amp;gt;
          &amp;lt;nuxeo-tooltip for="details"&amp;gt;[[i18n('documentPage.details.opened')]]&amp;lt;/nuxeo-tooltip&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="scroller"&amp;gt;
          &amp;lt;div class="section"&amp;gt;
            &amp;lt;nuxeo-document-info document="[[document]]"&amp;gt;&amp;lt;/nuxeo-document-info&amp;gt;
          &amp;lt;/div&amp;gt;

          &amp;lt;div class="section"&amp;gt;
            &amp;lt;nuxeo-document-metadata document="[[document]]"&amp;gt;&amp;lt;/nuxeo-document-metadata&amp;gt;
          &amp;lt;/div&amp;gt;

          &amp;lt;div class="section" hidden$="[[!_hasCollections(document)]]"&amp;gt;
            &amp;lt;h3&amp;gt;[[i18n('documentPage.collections')]]&amp;lt;/h3&amp;gt;
            &amp;lt;nuxeo-document-collections document="[[document]]"&amp;gt;&amp;lt;/nuxeo-document-collections&amp;gt;
          &amp;lt;/div&amp;gt;

          &amp;lt;template is="dom-if" if="[[hasFacet(document, 'NXTag')]]"&amp;gt;
            &amp;lt;div class="section"&amp;gt;
              &amp;lt;h3&amp;gt;[[i18n('documentPage.tags')]]&amp;lt;/h3&amp;gt;
              &amp;lt;nuxeo-tag-suggestion document="[[document]]" allow-new-tags="" placeholder="[[i18n('documentPage.tags.placeholder')]]" readonly="[[!isTaggable(document)]]"&amp;gt;
              &amp;lt;/nuxeo-tag-suggestion&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/template&amp;gt;
          &amp;lt;div class="section"&amp;gt;
            &amp;lt;paper-listbox id="documentViewsItems" selected="{{selectedTab}}" attr-for-selected="name"&amp;gt;
              &amp;lt;nuxeo-page-item name="comments" label="[[i18n('documentPage.comments')]]"&amp;gt;&amp;lt;/nuxeo-page-item&amp;gt;
              &amp;lt;nuxeo-page-item name="activity" label="[[i18n('documentPage.activity')]]"&amp;gt;&amp;lt;/nuxeo-page-item&amp;gt;
            &amp;lt;/paper-listbox&amp;gt;
            &amp;lt;iron-pages selected="[[selectedTab]]" attr-for-selected="name" selected-item="{{page}}"&amp;gt;
              &amp;lt;nuxeo-document-comment-thread name="comments" uid="[[document.uid]]"&amp;gt;&amp;lt;/nuxeo-document-comment-thread&amp;gt;
              &amp;lt;nuxeo-document-activity name="activity" document="[[document]]"&amp;gt;&amp;lt;/nuxeo-document-activity&amp;gt;
            &amp;lt;/iron-pages&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;

  &amp;lt;/template&amp;gt;
  &amp;lt;script&amp;gt;
    Polymer({
      is: 'nuxeo-document-page-v2',
      behaviors: [Nuxeo.LayoutBehavior],
      properties: {
        document: {
          type: Object
        },
        selectedTab: {
          type: String,
          value: 'comments',
          notify: true
        },
        opened: {
          type: Boolean,
          value: false,
          notify: true,
          reflectToAttribute: true,
          observer: '_openedChanged',
        }
      },

      _openedChanged: function() {
        Polymer.Async.animationFrame.run(function() {
          // notify that there was a resize
          this.dispatchEvent(new CustomEvent('resize', {
            bubbles: false,
            composed: true,
          }));
        });
      },

      _toggleOpened: function() {
        this.opened = !this.opened;
      },

      _isMutable: function(doc) {
        return !this.hasFacet(doc, 'Immutable') &amp;amp;&amp;amp; doc.type !== 'Root' &amp;amp;&amp;amp; !this.isTrashed(doc);
      },

      _hasCollections: function(doc) {
        return this.hasCollections(doc);
      }
    });
  &amp;lt;/script&amp;gt;

&amp;lt;/dom-module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Then, I have added the contribution in another html file, defining the slot contribution (I named this file "nuxeo-custom-none-bundle.html"):&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;link rel="import" href="nuxeo-document-page-v2.html"&amp;gt;

&amp;lt;nuxeo-slot-content name="documentViewPage" slot="DOCUMENT_VIEWS_PAGES" order="10"&amp;gt;
  &amp;lt;template&amp;gt;
    &amp;lt;nuxeo-filter document="[[document]]" expression="document.facets.indexOf('Folderish') === -1
                                                   &amp;amp;&amp;amp; document.facets.indexOf('Collection') === -1"&amp;gt;
      &amp;lt;template&amp;gt;
        &amp;lt;nuxeo-document-page-v2 name="view" document="[[document]]" opened=""&amp;gt;&amp;lt;/nuxeo-document-page-v2&amp;gt;
      &amp;lt;/template&amp;gt;
    &amp;lt;/nuxeo-filter&amp;gt;
  &amp;lt;/template&amp;gt;
&amp;lt;/nuxeo-slot-content&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Both files are located in the same directory in my project, in web/nuxeo.war/ui.&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;Finally, I added the extensions:&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.WebResources" point="resources"&amp;gt;
	&amp;lt;resource name="nuxeo-custom-none-bundle.html" type="import" shrinkable="false"&amp;gt;
		&amp;lt;uri&amp;gt;/ui/nuxeo-custom-none-bundle.html&amp;lt;/uri&amp;gt;
	&amp;lt;/resource&amp;gt;
&amp;lt;/extension&amp;gt;
&amp;lt;extension target="org.nuxeo.ecm.platform.WebResources" point="bundles"&amp;gt;
	&amp;lt;bundle name="web-ui"&amp;gt;
		&amp;lt;resources append="true"&amp;gt;
			&amp;lt;resource&amp;gt;nuxeo-custom-none-bundle.html&amp;lt;/resource&amp;gt;
		&amp;lt;/resources&amp;gt;
	&amp;lt;/bundle&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The contribution seems to be working properly, as when I access to a document, I can see that the module loaded is the "nuxeo-document-page-v2" as expected:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://i.imgur.com/ZXnED9V.png" alt="type an image title" /&gt;&lt;/P&gt;
&lt;P&gt;However, without modifying anything in the copied dom-module, it doesn't work as expected, as for example the comments tab is empty when the document has comments. This only happens if I am logged as Anonymous user (yes, I know that this is what we want to achieve, but this happens because of an error, not because of a filter for anonymous users).&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://i.imgur.com/Qi2YmxN.png" alt="type an image title" /&gt;&lt;/P&gt;
&lt;P&gt;Anyway, what I have tried to do is to use a nuxeo-filter to remove the full "Comments &amp;amp; Activity" section according to user.isAnonymous property, but then I found another problem: we don't have the "user" object in that module!&lt;/P&gt;
&lt;P&gt;I tried to modify the slot contriution as follows in order to get the "user" object in the module:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-document-page-v2 name="view" document="[[document]]" user="[[user]]" opened=""&amp;gt;&amp;lt;/nuxeo-document-page-v2&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And I also added it in "properties", inside the Polymer object in the nuxeo-document-page-v2.html file, after the "document" property:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;user: {
   type: Object
},
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, the behaviour is really strange, as when I try to use the "user" object, sometimes it is the user, sometimes it is the document, and sometimes it is undefined. So I don't understand what's happening here.&lt;/P&gt;
&lt;P&gt;Sorry for not being able to be more helpful. I will keep trying to make it work.&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 10:32:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320973#M7974</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-02-22T10:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the "Comments" and "Activity" section from the Document View</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320974#M7975</link>
      <description>&lt;P&gt;HI, [Rodri ](https&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 12:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320974#M7975</guid>
      <dc:creator>Anton_Petrov</dc:creator>
      <dc:date>2020-02-27T12:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the "Comments" and "Activity" section from the Document View</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320975#M7976</link>
      <description>&lt;P&gt;Hi, [Rodri ](https&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 21:33:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hide-the-quot-comments-quot-and-quot-activity-quot-section-from/m-p/320975#M7976</guid>
      <dc:creator>Anton_Petrov</dc:creator>
      <dc:date>2020-04-07T21:33:24Z</dc:date>
    </item>
  </channel>
</rss>

