<?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: pass current site name to repository webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/pass-current-site-name-to-repository-webscript/m-p/268988#M222118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From where are you calling repository web script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling repository web script from any of the site-webscripts –&amp;gt; component/module .. then you can use "page.url.templateArgs.site".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling from Repository Browser or User Dashboard or User Dashlet - you will not be able to get current site as site is not listed at that time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling from Share side JS file (tomcat\webapps\share\components), then you need to have a siteId attribute in your JS file and that must be set from server side site-webscript. Then only you can use the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 04:43:32 GMT</pubDate>
    <dc:creator>shahsnehal</dc:creator>
    <dc:date>2011-09-14T04:43:32Z</dc:date>
    <item>
      <title>pass current site name to repository webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-current-site-name-to-repository-webscript/m-p/268987#M222117</link>
      <description>Hi,I want to pass the current site name of share to the repository webscript.I am invoking the repository webscript in javascript as below.var result = remote.call("/xyz/xyz");I tried below two ways of passing current site name in the webscript URL but couldn't get it working.1.&amp;nbsp; var result = remote</description>
      <pubDate>Fri, 02 Sep 2011 10:30:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-current-site-name-to-repository-webscript/m-p/268987#M222117</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2011-09-02T10:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: pass current site name to repository webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-current-site-name-to-repository-webscript/m-p/268988#M222118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From where are you calling repository web script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling repository web script from any of the site-webscripts –&amp;gt; component/module .. then you can use "page.url.templateArgs.site".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling from Repository Browser or User Dashboard or User Dashlet - you will not be able to get current site as site is not listed at that time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling from Share side JS file (tomcat\webapps\share\components), then you need to have a siteId attribute in your JS file and that must be set from server side site-webscript. Then only you can use the same.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 04:43:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-current-site-name-to-repository-webscript/m-p/268988#M222118</guid>
      <dc:creator>shahsnehal</dc:creator>
      <dc:date>2011-09-14T04:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: pass current site name to repository webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-current-site-name-to-repository-webscript/m-p/268989#M222119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;From where are you calling repository web script?&lt;BR /&gt;&lt;BR /&gt;If you are calling repository web script from any of the site-webscripts –&amp;gt; component/module .. then you can use "page.url.templateArgs.site".&lt;BR /&gt;&lt;BR /&gt;If you are calling from Repository Browser or User Dashboard or User Dashlet - you will not be able to get current site as site is not listed at that time.&lt;BR /&gt;&lt;BR /&gt;If you are calling from Share side JS file (tomcat\webapps\share\components), then you need to have a siteId attribute in your JS file and that must be set from server side site-webscript. Then only you can use the same.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi as Snehal said you can get siteName using "page.url.templateArgs.site".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and if you want siteName in share side js .. you can use " Alfresco.constants.SITE ", this will give you current site.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 23:35:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-current-site-name-to-repository-webscript/m-p/268989#M222119</guid>
      <dc:creator>tapan_d_thakkar</dc:creator>
      <dc:date>2011-09-20T23:35:34Z</dc:date>
    </item>
  </channel>
</rss>

