在AEM 6.3版本中,是否可以在没有'aem-GridColumn'类的情况下进行组件渲染?

时间:2017-06-19 15:46:09

标签: aem

这就是呈现的内容:

<div class="aem--inline-span aem-GridColumn aem-GridColumn--default--12 cq-Editable-dom">
    <a class="btn learn-more">
        Contact Sales
    </a>
</div>

理想情况下,我的标记看起来像这样:

<div class="aem--inline-span cq-Editable-dom">
    <a class="btn learn-more">
        Contact Sales
    </a>
</div>

我想避免使用JavaScript hack。

谢谢你的期待。

1 个答案:

答案 0 :(得分:2)

添加aem-GridColumn类是因为您正在使用响应式解析(wcm/foundation/components/responsivegrid)并且它与“Layouting”模式相关联。

要防止添加这些类,您需要使用普通的parsys(wcm/foundation/components/parsys)。

https://docs.adobe.com/docs/en/aem/6-3/administer/operations/page-authoring/configuring-responsive-layouting.html