<?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: How to remove site's options to non admin users in 4.2.e in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-remove-site-s-options-to-non-admin-users-in-4-2-e/m-p/304160#M257290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In versions prior to Alfresco 4.2.d the header, title bar and navigation toolbar were all rendered by different Regions/Components/WebScripts… since 4.2.d they are now all rendered by a single new Region "share-header" which is bound through a Component to the "org.alfresco.share.header.share-header.get" WebScript. This new WebScript renders the display using a new approach that we're going to be taking from now on for Share development (this is the first of a series of blog posts explaining the changes &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/developer/2013/02/20/latest-updates-to-share-and-surf/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/developer/2013/02/20/latest-updates-to-share-and-surf/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is why your old customization is not working on 4.2.e - however, the good news is that it should be a fairly straightforward exercise to port your customization to the new approach. You simply need to target the JavaScript controller for the new WebScript and make the changes you need by removing the widget definitions from the model based on the current user. You can use this blog post (&lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/developer/2013/09/04/customizing-the-share-header-menu-part-1/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/developer/2013/09/04/customizing-the-share-header-menu-part-1/&lt;/A&gt;&lt;SPAN&gt;) as a guide to achieve what you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if you have any follow up questions,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 20:58:19 GMT</pubDate>
    <dc:creator>ddraper</dc:creator>
    <dc:date>2013-11-07T20:58:19Z</dc:date>
    <item>
      <title>How to remove site's options to non admin users in 4.2.e</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-remove-site-s-options-to-non-admin-users-in-4-2-e/m-p/304159#M257289</link>
      <description>Hi.I'm trying to remove some options in collaboration title component in my 4.2.e Share, but I'm unable to make that work.I tried to override the javascript controller with the code bellow using the web-extension folder approach, but it seems Share is ignoring my file. This same approach used to wor</description>
      <pubDate>Thu, 07 Nov 2013 12:50:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-remove-site-s-options-to-non-admin-users-in-4-2-e/m-p/304159#M257289</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2013-11-07T12:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove site's options to non admin users in 4.2.e</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-remove-site-s-options-to-non-admin-users-in-4-2-e/m-p/304160#M257290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In versions prior to Alfresco 4.2.d the header, title bar and navigation toolbar were all rendered by different Regions/Components/WebScripts… since 4.2.d they are now all rendered by a single new Region "share-header" which is bound through a Component to the "org.alfresco.share.header.share-header.get" WebScript. This new WebScript renders the display using a new approach that we're going to be taking from now on for Share development (this is the first of a series of blog posts explaining the changes &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/developer/2013/02/20/latest-updates-to-share-and-surf/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/developer/2013/02/20/latest-updates-to-share-and-surf/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is why your old customization is not working on 4.2.e - however, the good news is that it should be a fairly straightforward exercise to port your customization to the new approach. You simply need to target the JavaScript controller for the new WebScript and make the changes you need by removing the widget definitions from the model based on the current user. You can use this blog post (&lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/developer/2013/09/04/customizing-the-share-header-menu-part-1/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/developer/2013/09/04/customizing-the-share-header-menu-part-1/&lt;/A&gt;&lt;SPAN&gt;) as a guide to achieve what you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if you have any follow up questions,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 20:58:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-remove-site-s-options-to-non-admin-users-in-4-2-e/m-p/304160#M257290</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2013-11-07T20:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove site's options to non admin users in 4.2.e</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-remove-site-s-options-to-non-admin-users-in-4-2-e/m-p/304161#M257291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dave for pointing me that out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could achieve my goals using your tips from here and from IRC channel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to let it registered here for those facing the same problem, you can follow the tutorials suggested by Dave.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my requirements, I had not only to override the javascript controller in order to get the options removed from site's dashboard, but also control that behavior based on the user groups. Those options should appear only to Alfresco Admins and for site's managers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To be able to make that decision I used the groups.module.evaluator, with the parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;groups&amp;gt;GROUP_ALFRESCO_ADMINISTRATORS,SiteManager&amp;lt;/groups&amp;gt;&lt;BR /&gt;&amp;lt;groupRelation&amp;gt;OR&amp;lt;/groupRelation&amp;gt;&lt;BR /&gt;&amp;lt;negate&amp;gt;true&amp;lt;/negate&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I got to know those parameters looking at this source file from Alfresco's SVN&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/slingshot/source/java/org/alfresco/web/extensibility/SlingshotSiteModuleEvaluator.java" rel="nofollow noopener noreferrer"&gt;http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/slingshot/source/java/org/alfresco/web/extensibility/SlingshotSiteModuleEvaluator.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this sumary of ideas be useful for someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See ya&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 23:09:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-remove-site-s-options-to-non-admin-users-in-4-2-e/m-p/304161#M257291</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2013-11-09T23:09:00Z</dc:date>
    </item>
  </channel>
</rss>

