<?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 to get Current Site ID in the site dashlet in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-site-id-in-the-site-dashlet/m-p/247973#M201103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing a share site dashlet and I want to know how can I refer to the current site to get all the documents from its document library?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am even if any one can suggest how to point to current site in the webscript for share site dashlet?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 14:10:14 GMT</pubDate>
    <dc:creator>mitpatoliya</dc:creator>
    <dc:date>2012-08-16T14:10:14Z</dc:date>
    <item>
      <title>How to get Current Site ID in the site dashlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-site-id-in-the-site-dashlet/m-p/247973#M201103</link>
      <description>Hello All,I am developing a share site dashlet and I want to know how can I refer to the current site to get all the documents from its document library?I am even if any one can suggest how to point to current site in the webscript for share site dashlet?</description>
      <pubDate>Thu, 16 Aug 2012 14:10:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-site-id-in-the-site-dashlet/m-p/247973#M201103</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-08-16T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Current Site ID in the site dashlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-site-id-in-the-site-dashlet/m-p/247974#M201104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at the source for the site dashlets - you will see a common pattern, the siteid is provided in the "args" to the webscript. You can access it both within your web-tier javascript controller or the freemarker presentation template:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var siteId = page.url.templateArgs.site&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FreeMarker:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;${page.url.templateArgs.site}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 14:17:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-current-site-id-in-the-site-dashlet/m-p/247974#M201104</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2012-08-16T14:17:52Z</dc:date>
    </item>
  </channel>
</rss>

