Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 1

(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?

1 Accepted Solution

Avatar

Correct answer by
Level 10
1 Reply

Avatar

Correct answer by
Level 10