<?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: How to programmatically enable / disable cq:noDecorat... in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368274#M20302</link>
    <description>&lt;P&gt;In addition to the runmode check suggested by&amp;nbsp;&lt;LI-USER uid="5625676"&gt;&lt;/LI-USER&gt;&amp;nbsp;, please use IncludeOptions to enable/disable decoration tags. Please refer to the below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.codermag.net/2016/02/remove-component-wrapper-divs-in-cqaem.html" target="_blank"&gt;https://www.codermag.net/2016/02/remove-component-wrapper-divs-in-cqaem.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 19:32:36 GMT</pubDate>
    <dc:creator>raghavc</dc:creator>
    <dc:date>2020-06-26T19:32:36Z</dc:date>
    <item>
      <title>How to programmatically enable / disable cq:noDecoration?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368208#M20300</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a problem where the overall page renders HTML elements as expected in the publisher when&amp;nbsp;cq:noDecoration is set to "true" on a given component.&lt;/P&gt;&lt;P&gt;However, when&amp;nbsp;cq:noDecoration is set to "true", I cannot edit and make any changes my component; the dialogue does not show. When I set the value to false, it works again, but I the publisher needs the value&amp;nbsp;cq:noDecoration=true.&lt;/P&gt;&lt;P&gt;Is there a nice way for me to programmatically set&amp;nbsp;cq:noDecoration to true only on "author mode"?&lt;/P&gt;&lt;P&gt;Requirement:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;only set&amp;nbsp;cq:noDecoration to "true" in author mode.&lt;/LI&gt;&lt;LI&gt;only set&amp;nbsp;cq:noDecoration to "false" that is not author mode.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My Component is JSP.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 09:07:43 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368208#M20300</guid>
      <dc:creator>karthik4</dc:creator>
      <dc:date>2020-06-26T09:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically enable / disable cq:noDecorat...</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368218#M20301</link>
      <description>&lt;P&gt;Hi &lt;LI-USER uid="17378453"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do a runmode check to know if the instance is author or publisher. You can set the property accordingly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are many ways to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;JSP:&lt;/P&gt;&lt;P&gt;If you need to check runmode in jsp. (But will suggest not to add scriptlet, you can move it to taglib and get the result)&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;Please use below code:- &amp;lt;% pageContext.setAttribute("runModes", sling.getService(SlingSettingsService.class).getRunModes().toString()); %&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Slightly:&lt;/P&gt;&lt;P&gt;Pretty simple to do&lt;/P&gt;&lt;P&gt;&lt;A href="https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-now-publish-mode-edit-mode-in-htl/qaq-p/263938" target="_blank" rel="noopener"&gt;https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-now-publish-mode-edit-mode-in-htl/qaq-p/263938&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 10:34:02 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368218#M20301</guid>
      <dc:creator>Vaibhavi_Gowda</dc:creator>
      <dc:date>2020-06-26T10:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically enable / disable cq:noDecorat...</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368274#M20302</link>
      <description>&lt;P&gt;In addition to the runmode check suggested by&amp;nbsp;&lt;LI-USER uid="5625676"&gt;&lt;/LI-USER&gt;&amp;nbsp;, please use IncludeOptions to enable/disable decoration tags. Please refer to the below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.codermag.net/2016/02/remove-component-wrapper-divs-in-cqaem.html" target="_blank"&gt;https://www.codermag.net/2016/02/remove-component-wrapper-divs-in-cqaem.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 19:32:36 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368274#M20302</guid>
      <dc:creator>raghavc</dc:creator>
      <dc:date>2020-06-26T19:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically enable / disable cq:noDecorat...</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368291#M20303</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17378453"&gt;&lt;/LI-USER&gt;&amp;nbsp;Looks like you want to hide the component div and it can be achieved by using the below piece of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the below code into headlibs.html/similar area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;%&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    if &lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;WCMMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromRequest&lt;/SPAN&gt;&lt;SPAN&gt;(request) != &lt;/SPAN&gt;&lt;SPAN&gt;WCMMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;EDIT &lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;WCMMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromRequest&lt;/SPAN&gt;&lt;SPAN&gt;(request) != &lt;/SPAN&gt;&lt;SPAN&gt;WCMMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DESIGN&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        slingRequest.setAttribute(&lt;/SPAN&gt;&lt;SPAN&gt;ComponentContext&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BYPASS_COMPONENT_HANDLING_ON_INCLUDE_ATTRIBUTE&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;%&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Add the below code into footlibs.html/similar area.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;%&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    if &lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;WCMMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromRequest&lt;/SPAN&gt;&lt;SPAN&gt;(request) != &lt;/SPAN&gt;&lt;SPAN&gt;WCMMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;EDIT &lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;WCMMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromRequest&lt;/SPAN&gt;&lt;SPAN&gt;(request) != &lt;/SPAN&gt;&lt;SPAN&gt;WCMMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DESIGN&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        slingRequest.removeAttribute(&lt;/SPAN&gt;&lt;SPAN&gt;ComponentContext&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BYPASS_COMPONENT_HANDLING_ON_INCLUDE_ATTRIBUTE&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;%&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 04:49:31 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-programmatically-enable-disable-cq-nodecoration/m-p/368291#M20303</guid>
      <dc:creator>Asutosh_Jena_</dc:creator>
      <dc:date>2020-06-27T04:49:31Z</dc:date>
    </item>
  </channel>
</rss>

