<?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: data-sly-call is not being called or invoked in HTL. in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450942#M129250</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17531686"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The object of clientlib you are creating could be the issue-&lt;/P&gt;&lt;P&gt;Please refer the below code sample -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;head data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}"&amp;gt;

&amp;lt;!--/* for css+js */--&amp;gt;
&amp;lt;meta data-sly-call="${clientLib.all @ categories='your.clientlib'}" data-sly-unwrap&amp;gt;&amp;lt;/meta&amp;gt;

&amp;lt;!--/* only js */--&amp;gt;
&amp;lt;meta data-sly-call="${clientLib.js @ categories='your.clientlib'}" data-sly-unwrap&amp;gt;&amp;lt;/meta&amp;gt;

&amp;lt;!--/* only css */--&amp;gt;
&amp;lt;meta data-sly-call="${clientLib.css @ categories='your.clientlib'}" data-sly-unwrap&amp;gt;&amp;lt;/meta&amp;gt;

&amp;lt;/head&amp;gt;&lt;/PRE&gt;&lt;P&gt;For each component, you will have to create the clientlib object as it is created in 1st line. If you just include in top of your page (only in page component), the other components will not inherit the object. If you are writing the data-sly-call attribute in you component html, you have to re-create the clientlib object in the same way it is created in above sample code.&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 04:42:44 GMT</pubDate>
    <dc:creator>anish-s</dc:creator>
    <dc:date>2022-05-06T04:42:44Z</dc:date>
    <item>
      <title>data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450923#M129238</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;I'm relatively new to AEM and I need some assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following data-sly-call is not being called, invoked or rendered and I don't know WHY? It seems to be working in other components but doest not work on others.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;sly &lt;/SPAN&gt;&lt;SPAN&gt;data-sly-call&lt;/SPAN&gt;&lt;SPAN&gt;="${clientlib.ctagroup @ ctaGroupModel=ctaGroup}"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/sly&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;In &lt;STRONG&gt;project.html&lt;/STRONG&gt; file, at the top of my page, I am using:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;sly &lt;/SPAN&gt;&lt;SPAN&gt;data-sly-use.clientlib&lt;/SPAN&gt;&lt;SPAN&gt;="/apps/myproject/components/sightly-templates/ctagrouplegal/ctagrouplegal.html" &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/sly&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;sly &lt;/SPAN&gt;&lt;SPAN&gt;data-sly-use.ctaGroup&lt;/SPAN&gt;&lt;SPAN&gt;="com.aem.myproejct.core.components.models.CTAGroup"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/sly&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;then in the middle of my &lt;STRONG&gt;project.html&lt;/STRONG&gt; page, i am using:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;div &lt;/SPAN&gt;&lt;SPAN&gt;class&lt;/SPAN&gt;&lt;SPAN&gt;="cta-container"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;sly &lt;/SPAN&gt;&lt;SPAN&gt;data-sly-call&lt;/SPAN&gt;&lt;SPAN&gt;="${clientlib.ctagroup @ ctaGroupModel=ctaGroup}"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/sly&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;In my dialog &lt;STRONG&gt;.content.xml&lt;/STRONG&gt; file, I am using:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;callctalinks&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;jcr&lt;/SPAN&gt;&lt;SPAN&gt;:primaryType&lt;/SPAN&gt;&lt;SPAN&gt;="nt:unstructured"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;sling&lt;/SPAN&gt;&lt;SPAN&gt;:resourceType&lt;/SPAN&gt;&lt;SPAN&gt;="granite/ui/components/foundation/include"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;="/apps/myproject/components/base/_ctagroup/content/items/ctaLinks"&lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;What am i missing or doing wrong? As i said, it seems to be working fine on other components.&lt;BR /&gt;Your help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 21:32:26 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450923#M129238</guid>
      <dc:creator>jakdevmode</dc:creator>
      <dc:date>2022-05-05T21:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450942#M129250</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17531686"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The object of clientlib you are creating could be the issue-&lt;/P&gt;&lt;P&gt;Please refer the below code sample -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;head data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}"&amp;gt;

&amp;lt;!--/* for css+js */--&amp;gt;
&amp;lt;meta data-sly-call="${clientLib.all @ categories='your.clientlib'}" data-sly-unwrap&amp;gt;&amp;lt;/meta&amp;gt;

&amp;lt;!--/* only js */--&amp;gt;
&amp;lt;meta data-sly-call="${clientLib.js @ categories='your.clientlib'}" data-sly-unwrap&amp;gt;&amp;lt;/meta&amp;gt;

&amp;lt;!--/* only css */--&amp;gt;
&amp;lt;meta data-sly-call="${clientLib.css @ categories='your.clientlib'}" data-sly-unwrap&amp;gt;&amp;lt;/meta&amp;gt;

&amp;lt;/head&amp;gt;&lt;/PRE&gt;&lt;P&gt;For each component, you will have to create the clientlib object as it is created in 1st line. If you just include in top of your page (only in page component), the other components will not inherit the object. If you are writing the data-sly-call attribute in you component html, you have to re-create the clientlib object in the same way it is created in above sample code.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 04:42:44 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450942#M129250</guid>
      <dc:creator>anish-s</dc:creator>
      <dc:date>2022-05-06T04:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450943#M129251</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17531686"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your component doesn't have the scope to the variable "clientlib". Try adding the below line of code above the data-sly-use.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;sly &lt;/SPAN&gt;&lt;SPAN&gt;data-sly-use.clientlib&lt;/SPAN&gt;&lt;SPAN&gt;="/apps/myproject/components/sightly-templates/ctagrouplegal/ctagrouplegal.html" &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/sly&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 04:43:22 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450943#M129251</guid>
      <dc:creator>JeevanRaj</dc:creator>
      <dc:date>2022-05-06T04:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450958#M129258</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you are missing the template part of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check&amp;nbsp;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/block-statements.html?lang=en#template-call" target="_blank"&gt;https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/block-statements.html?lang=en#template-call&lt;/A&gt;&amp;nbsp;to know more about data-sly-template and data-sly-call&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 07:59:07 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/450958#M129258</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2022-05-06T07:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451043#M129285</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17501275"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the reply. I actually tried that too but didn't work. Do you have any other suggestions?&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 16:56:40 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451043#M129285</guid>
      <dc:creator>jakdevmode</dc:creator>
      <dc:date>2022-05-06T16:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451044#M129286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="15800109"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I saw a similar post before and I tried it but still no luck. Any other suggestions?&lt;BR /&gt;The thing is, it works fine when I use it on other components, but not working on the page i wanna use.&lt;BR /&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 16:59:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451044#M129286</guid>
      <dc:creator>jakdevmode</dc:creator>
      <dc:date>2022-05-06T16:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451045#M129287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the reply. I did try it as well, but still no luck. As I mentioned above, it works fine on other components, but not on the page i wanna use. Please advise. Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 17:01:08 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451045#M129287</guid>
      <dc:creator>jakdevmode</dc:creator>
      <dc:date>2022-05-06T17:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451250#M129342</link>
      <description>&lt;P&gt;&lt;LI-USER uid="15800109"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;LI-USER uid="17501275"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;I was able to figure out why it was not working. It's because of my dialog structure.&lt;BR /&gt;When I nest the ctaLinks inside the &lt;STRONG&gt;multifield&lt;/STRONG&gt;, inside the nav, it's not working.&lt;/P&gt;&lt;P&gt;When I use it OUTSIDE the multifield, it's working.&lt;/P&gt;&lt;P&gt;Since this is multifield, I need this ctaLinks to be nested inside multifield, so I could create multiple ctas for each card. I hope you understand what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-05-09 at 3.54.48 PM.png" style="width: 772px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40829i89834FFC36D24B43/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-05-09 at 3.54.48 PM.png" alt="Screen Shot 2022-05-09 at 3.54.48 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know what am I missing or doing wrong?&lt;/P&gt;&lt;P&gt;Thank you so much for everyone's help.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 22:58:05 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451250#M129342</guid>
      <dc:creator>jakdevmode</dc:creator>
      <dc:date>2022-05-09T22:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451287#M129355</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;You can use the below code to get multifield items in a list&lt;/P&gt;&lt;PRE&gt;https://github.com/arunpatidar02/aem63app-repo/blob/master/demo/test.txt&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 May 2022 07:33:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451287#M129355</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2022-05-10T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: data-sly-call is not being called or invoked in HTL.</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451551#M129446</link>
      <description>&lt;P&gt;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response. I appreciate that. I will give it a try.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 16:20:21 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/data-sly-call-is-not-being-called-or-invoked-in-htl/m-p/451551#M129446</guid>
      <dc:creator>jakdevmode</dc:creator>
      <dc:date>2022-05-11T16:20:21Z</dc:date>
    </item>
  </channel>
</rss>

