Remove parbase
I am using sightly framework to design frontend components. I want the class <div class="parbase componentname section"> to be removed in publish instance
I am using sightly framework to design frontend components. I want the class <div class="parbase componentname section"> to be removed in publish instance
If you are using sightly parsys component in your page component script (i.e. /libs/wcm/foundation/components/parsys) then the default cq generated div tags are auto suppressed you don't need to do anything extra. It is also mentioned on dev.day.com that sightly won't generate default tags - http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html#resource. You can also verify the same by creating a page template configured on sightly based page component available OOTB at /libs/wcm/foundation/components/page and observe the tag it outputs across the content, you won't see any default CQ tags.
Now if you are not using sightly based parsys component and rather using parsys at /libs/foundation/components/parsys in your scripts, then you will need to overlay parsys component under apps and in parsys.jsp you willl need to add following code with necessary publish mode check.
if(mode == publish){ IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE).setDecorationTagName("");; } Also comment following line of code in parsys.jsp //IncludeOptions.getOptions(request, true).getCssClassNames().add("section");- Runal
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.