<?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 How sort the members of a site on the preview dashlet dashboard of the site? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20818#M9163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Our teams have developed two shares that work perfectly, the only difference is in the dashlet of the members of the single site are sorted by last name [first name] in one while in the other are sorted by name [last name].&lt;/SPAN&gt; &lt;SPAN class=""&gt;Which property is such a difference?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Greetings.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2017 13:05:41 GMT</pubDate>
    <dc:creator>AlfrescoZZZ</dc:creator>
    <dc:date>2017-07-21T13:05:41Z</dc:date>
    <item>
      <title>How sort the members of a site on the preview dashlet dashboard of the site?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20818#M9163</link>
      <description>Our teams have developed two shares that work perfectly, the only difference is in the dashlet of the members of the single site are sorted by last name [first name] in one while in the other are sorted by name [last name]. Which property is such a difference?Greetings.</description>
      <pubDate>Fri, 21 Jul 2017 13:05:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20818#M9163</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-07-21T13:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How set the order of the site members on the dashlet?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20819#M9164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are saying like of makes no sense, as the code has an explicit sort by name in code, as you can see &lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/dashlets/colleagues.get.js#L46" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt; and &lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/dashlets/colleagues.get.js#L3" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Are you talking about the OOTB colleagues dashlet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 19:37:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20819#M9164</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-07-21T19:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How set the order of the site members on the dashlet?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20820#M9165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ty for response douglas , your link are been very helpful and i think they can solved by problem and answer to my question, for your question, the dahslet i'm talking about is the standard documented here &lt;A href="http://docs.alfresco.com/5.2/concepts/sites-dashlet-use.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.2/concepts/sites-dashlet-use.html.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;let you know if i solved my problem with your advise.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 21:25:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20820#M9165</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-07-21T21:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: How set the order of the site members on the dashlet?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20821#M9166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K the response of Douglas help me a lot, i'm not found on alfresco 4 the javascript &lt;STRONG class=""&gt;colleagues.get.js&lt;/STRONG&gt; , but i found&amp;nbsp; the script &lt;STRONG&gt;site-members.js&lt;/STRONG&gt; to customize for sort by surname instead name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;// Sort the member list by name&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; items.sort(function (membership1, membership2)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; var name1 = membership1.firstName + membership1.lastName,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; name2 = membership2.firstName + membership2.lastName;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; return (name1 &amp;gt; name2) ? 1 : (name1 &amp;lt; name2) ? -1 : 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;....................................................................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;if ((firstName !== undefined) || (lastName !== undefined))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = firstName ? firstName + " " : "";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name += lastName ? lastName : "";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;............................................................................&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;// Sort the member list by surname&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;items.sort(function (membership1, membership2)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; var name1 = membership1.lastName + membership1.firstName,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; name2 = membership2.lastName + membership2.firstName;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; return (name1 &amp;gt; name2) ? 1 : (name1 &amp;lt; name2) ? -1 : 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;});&lt;/P&gt;&lt;P&gt;.....................................................................&lt;/P&gt;&lt;P&gt;if ((firstName !== undefined) || (lastName !== undefined))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;name = lastName ? lastName + " ": "";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name += firstName ? firstName : "";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's work when i go to the dashlet "All Members" of the site but it's not work for the "preview" in the site dashboard, &lt;STRONG&gt;there is some other javascript i need to modify?&lt;/STRONG&gt; here i put a image of the problem:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="16073" alt="" class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/16073_ordina_cognome_nome_dashlet.png" style="width: 809px; height: 283px;" /&gt;&lt;/P&gt;&lt;P&gt;They are order for name not surname. Someone can help me with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 12:42:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20821#M9166</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-09-07T12:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How set the order of the site members on the dashlet?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20822#M9167</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;Based on your text and the attached image, I could not understand what is and what is not working.&lt;/P&gt;&lt;P&gt;Can you please elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 01:15:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20822#M9167</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-09-09T01:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: How sort the members of a site on the preview dashlet dashboard of the site?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20823#M9168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...I think Marco wants to sort the Users by lastName+firstName not by firstName+lastName which is the default sorting in the dashlet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 10:49:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20823#M9168</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-09-09T10:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How sort the members of a site on the preview dashlet dashboard of the site?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20824#M9169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes like martin said, sorry for the misunderstanding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 07:05:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20824#M9169</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-09-11T07:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How sort the members of a site on the preview dashlet dashboard of the site?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20825#M9170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you on Alfresco 4 yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/dashlets/colleagues.get.js" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;colleagues.get.js&lt;/A&gt;,&amp;nbsp;at least in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Alfresco Share 5.2.e, is the file used for the dashlet Site Members:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;shortname&amp;gt;Site Members&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;description&amp;gt;Lists members in the collaboration site&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;site-member.get.js&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is used by the webscript responsible to return data for the Site Members "page":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;shortname&amp;gt;site-members&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;description&amp;gt;Site Members component&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;In this case, I don't know if the name of the file is right, as there are both &lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/webapp/components/site-members/site-members.js" rel="nofollow noopener noreferrer"&gt;site-members.js&lt;/A&gt; (the client side javascript file) and&amp;nbsp;&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/site-members/site-members.get.js" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;site-member.get.js&lt;/A&gt;&amp;nbsp;(the webscript's controller).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, there are different places to check/change,&amp;nbsp;and I am not sure if you are talking about what I think you are.&lt;/P&gt;&lt;P&gt;Besides that, I still didn't get what is the&amp;nbsp;&lt;STRONG style="background-color: #ffffff; color: #727174;"&gt;preview&lt;/STRONG&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;you mentioned.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 02:12:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20825#M9170</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-09-13T02:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: How sort the members of a site on the preview dashlet dashboard of the site?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20826#M9171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="84633" data-username="douglascrp" href="https://community.alfresco.com/people/douglascrp" rel="nofollow noopener noreferrer"&gt;Douglas&lt;/A&gt;&lt;/SPAN&gt; you were right from the start, for some reason my brain is trying to find the &lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/dashlets/colleagues.get.js" rel="nofollow noopener noreferrer" style="color: #2989c5; text-decoration: none;" target="_blank"&gt;colleagues.get.js&lt;/A&gt; under alfresco webapp not the share, i have solved all. For anyone have the same issue you can find more detail into this question &lt;A _jive_internal="true" href="https://community.alfresco.com/thread/233292-sort-site-members-by-surname-not-name-on-site-dashboard" rel="nofollow noopener noreferrer"&gt;Sort site members by surname not name on site dashboard&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S i don't now how to call the scrool panel of the site-members show on the left side of the site dashboard , i think is acceptable call it "&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;preview panel of the members of the site&lt;/SPAN&gt;&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-sort-the-members-of-a-site-on-the-preview-dashlet-dashboard/m-p/20826#M9171</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2017-09-14T13:44:01Z</dc:date>
    </item>
  </channel>
</rss>

