How to Remove CQ Generated DIVS from Publish mode but not from Edit mode in Touch UI | Community
Skip to main content
Prateek_Agrawal
Level 2
December 29, 2016
Solved

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

  • December 29, 2016
  • 4 replies
  • 1427 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

With the article mentioned above, you can do something like

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

4 replies

smacdonald2008
Level 10
December 30, 2016
Feike_Visser1
Adobe Employee
Adobe Employee
December 31, 2016

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

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
January 3, 2017

With the article mentioned above, you can do something like

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