【发布时间】:2017-05-31 11:45:59
【问题描述】:
我正在尝试在我创建的新组件中添加徽标组件。该项目是使用 eclipse aem 插件创建的。
My component, that inherits from a native component.
<!DOCTYPE html>
<html>
<head>
<sly data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientLib.css @ categories='paiva.all'}" data-sly-unwrap/>
<sly data-sly-include="/libs/cq/cloudserviceconfigs/components/servicelibs/servicelibs.jsp" data-sly-unwrap/>
<sly data-sly-include="/libs/wcm/core/components/init/init.jsp" data-sly-unwrap/>
<title>${currentPage.title || currentPage.name}</title>
</head>
<body>
<div class="page__logo" data-sly-resource="logo"></div>
</body>
</html>
Looking at the content folder 我注意到我在组件pagina.html 中添加的组件在内容文件夹中不存在。但是当我向parsys 添加一个组件时,它确实有效。
如果我手动添加组件,它可以工作。
这正常吗?如果没有,我该怎么办?
【问题讨论】: