<?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: create page with args in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57773#M20724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, nothing special needs to be done with regards to defining your page. You only need to access the&amp;nbsp;arguments as shown by Kalpesh.&lt;/P&gt;&lt;P&gt;Additionally, you can also use the Spring Surf model objects for pages / template instances and pass URL arguments via the &amp;lt;properties&amp;gt; or &amp;lt;url&amp;gt; element in the component binding section. Unfortunately, the documentation no longer covers this as the "traditional way to define Surf pages" is no longe recommended (Aikau is the default). You can still see that approach in &lt;A href="https://github.com/Alfresco/share/blob/develop/share/src/main/resources/alfresco/site-data/template-instances/create-content.xml#L61" rel="nofollow noopener noreferrer"&gt;Alfresco code though&lt;/A&gt;. All&amp;nbsp;arguments passed in such a way are accessible using the root scope "args" / "argsM" object instead of the page.url.args, which might make your web script code more independant from knowing / accessing any page context data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2018 14:16:09 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-03-06T14:16:09Z</dc:date>
    <item>
      <title>create page with args</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57771#M20722</link>
      <description>&amp;nbsp;Hi,&amp;nbsp; Ive tried this tutorial to create a new page home-page "Adding a new Surf page to Alfresco Share | Alfresco Documentation&amp;nbsp;",My question is how can i create this page with an argument so the url that i can use for examle&amp;nbsp;/home-page?idworkflow={idworkflow}, so later i can use this argument into</description>
      <pubDate>Mon, 05 Mar 2018 16:13:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57771#M20722</guid>
      <dc:creator>inaam</dc:creator>
      <dc:date>2018-03-05T16:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: create page with args</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57772#M20723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get your parameter.&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;in js controller&lt;BR /&gt;page.url.args.&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;idworkflow&lt;BR /&gt;&lt;BR /&gt;And in FTL using ${}&lt;BR /&gt;${&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;page.url.args.&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;idworkflow}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 07:31:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57772#M20723</guid>
      <dc:creator>kalpesh_c2</dc:creator>
      <dc:date>2018-03-06T07:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: create page with args</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57773#M20724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, nothing special needs to be done with regards to defining your page. You only need to access the&amp;nbsp;arguments as shown by Kalpesh.&lt;/P&gt;&lt;P&gt;Additionally, you can also use the Spring Surf model objects for pages / template instances and pass URL arguments via the &amp;lt;properties&amp;gt; or &amp;lt;url&amp;gt; element in the component binding section. Unfortunately, the documentation no longer covers this as the "traditional way to define Surf pages" is no longe recommended (Aikau is the default). You can still see that approach in &lt;A href="https://github.com/Alfresco/share/blob/develop/share/src/main/resources/alfresco/site-data/template-instances/create-content.xml#L61" rel="nofollow noopener noreferrer"&gt;Alfresco code though&lt;/A&gt;. All&amp;nbsp;arguments passed in such a way are accessible using the root scope "args" / "argsM" object instead of the page.url.args, which might make your web script code more independant from knowing / accessing any page context data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 14:16:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57773#M20724</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-06T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: create page with args</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57774#M20725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks every one for the help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did it.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://connect.hyland.com/legacyfs/online/alfresco/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:40:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-page-with-args/m-p/57774#M20725</guid>
      <dc:creator>inaam</dc:creator>
      <dc:date>2018-03-07T20:40:36Z</dc:date>
    </item>
  </channel>
</rss>

