How can I stop CQ 5.5 wrapping iparsys content in <div class=“iparys_inherited”>? | Community
Skip to main content
pauldwaite
October 16, 2015
Solved

How can I stop CQ 5.5 wrapping iparsys content in <div class=“iparys_inherited”>?

  • October 16, 2015
  • 1 reply
  • 676 views

(This question is also posted on Stack Overflow, in case you prefer to answer there.)

I’m working on a CQ 5.5 site. On our home page, I’m using an iparsys to inherit navigation from our root page:

<cq:include path="navigation" resourceType="foundation/components/iparsys" />

When I view the home page on our publish server, the navigation is rendered wrapped in a <div> with a class of “iparys_inherited”:

(Please note: this is not a typo on my part, this is the exact HTML we’re seeing.)

<div class="iparys_inherited"><!-- iparsys content appears here --></div>

We include a global JSP file in all our pages that, amongst other things, calls com.day.cq.wcm.api.components.ComponentContext.setDefaultDecorationTagName to turn off decoration tags in publish mode:

componentContext.setDefaultDecorationTagName("");

But this seems to have no effect on the iparys_inherited <div>.

Is there a way to stop this wrapper <div> being rendered?

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

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015