<?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 Hide download button in document previewer for specific custom content type in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/hide-download-button-in-document-previewer-for-specific-custom/m-p/55660#M20311</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I want to hide the download button in the document previewer for the specific custom content type. Right now I have hidden download button for every document in alfresco by updating AlfrescoUtil.param("showDownload", "&lt;STRONG&gt;false&lt;/STRONG&gt;"); and showDownload : (model.showDownload == "&lt;STRONG&gt;false&lt;/STRONG&gt;") and&amp;nbsp;&lt;STRONG&gt;in node-header.get.js.&amp;nbsp;&lt;/STRONG&gt;How can I achieve this for specific custom content types, i.e. for one particular content type download button in the document previewer will be hidden while&amp;nbsp;documents of other content types can see the Download button in the&amp;nbsp;document previewer?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;A href="https://digitalbiriyani.com/" target="_self" rel="nofollow noopener noreferrer"&gt;Yash&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2019 06:41:37 GMT</pubDate>
    <dc:creator>yash_patel_c2</dc:creator>
    <dc:date>2019-03-19T06:41:37Z</dc:date>
    <item>
      <title>Hide download button in document previewer for specific custom content type</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hide-download-button-in-document-previewer-for-specific-custom/m-p/55660#M20311</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I want to hide the download button in the document previewer for the specific custom content type. Right now I have hidden download button for every document in alfresco by updating AlfrescoUtil.param("showDownload", "&lt;STRONG&gt;false&lt;/STRONG&gt;"); and showDownload : (model.showDownload == "&lt;STRONG&gt;false&lt;/STRONG&gt;") and&amp;nbsp;&lt;STRONG&gt;in node-header.get.js.&amp;nbsp;&lt;/STRONG&gt;How can I achieve this for specific custom content types, i.e. for one particular content type download button in the document previewer will be hidden while&amp;nbsp;documents of other content types can see the Download button in the&amp;nbsp;document previewer?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;A href="https://digitalbiriyani.com/" target="_self" rel="nofollow noopener noreferrer"&gt;Yash&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 06:41:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hide-download-button-in-document-previewer-for-specific-custom/m-p/55660#M20311</guid>
      <dc:creator>yash_patel_c2</dc:creator>
      <dc:date>2019-03-19T06:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hide download button in document previewer for specific custom content type</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hide-download-button-in-document-previewer-for-specific-custom/m-p/55661#M20312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case I would implement a custom repository service, with noderef as param, that will return the value of showing the download button comparing node's type with a list of predefined types.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then I would call this service from node-header.get.js and set showDownload option of NodeHeader component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have two options to achieve that using share extension mechanism:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overwriting it or extending it and changing the value of the property in the component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 10:50:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hide-download-button-in-document-previewer-for-specific-custom/m-p/55661#M20312</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-03-19T10:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hide download button in document previewer for specific custom content type</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/hide-download-button-in-document-previewer-for-specific-custom/m-p/55662#M20313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yash,&lt;/P&gt;&lt;P&gt;In&amp;nbsp;node-header.get.js,there is one object which is getting all the details of node.&lt;/P&gt;&lt;P&gt;var nodeDetails = AlfrescoUtil.getNodeDetails(model.nodeRef, model.site, null, model.libraryRoot);&lt;/P&gt;&lt;P&gt;This object is providing properties,mimetype,parent details and all.....&lt;/P&gt;&lt;P&gt;You can use it to get content type of document ex. nodeDetails.item.node.type;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Mar 2019 03:40:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/hide-download-button-in-document-previewer-for-specific-custom/m-p/55662#M20313</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-03-23T03:40:49Z</dc:date>
    </item>
  </channel>
</rss>

