내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

How to Remove CQ Generated DIVS from Publish mode but not from Edit mode in Touch UI

Avatar

Level 2

HI,

I am using cq:htmlTag node to remove the cq generated divs.

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    cq:tagName=""
    jcr:primaryType="nt:unstructured"
    class=""
    id=""/>

 

This node does the intended work, but what it also does it that if I drop my component(having this node) in a parsys, then in that case I am unable to drop another component in the same parsys.

I want to remove the cq generated divs only in edit mode else not or I should be able to drag and drop the other components in the same parsys and also edit each of the dropped component.

Kindly help.

Prateek

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee

With the article mentioned above, you can do something like

  1. <sly data-sly-test="${!wcmmode.edit}" data-sly-include="options.jsp"></sly>

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Level 10

Avatar

Employee

What you can do too is to overlay the parsys (/libs/wcm/foundation/components/parsys/parsys.html), and put the logic in there.

Avatar

Community Advisor

Avatar

정확한 답변 작성자:
Employee

With the article mentioned above, you can do something like

  1. <sly data-sly-test="${!wcmmode.edit}" data-sly-include="options.jsp"></sly>