Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
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