我们正在尝试自定义 AEM 开箱即用的用户编辑器控制台(AEM 6.0 SP3,Touch UI)。然而我们的改变并没有体现出来。
预期:显示提供的新字段(请参阅下面提供的代码段),通过资源合并合并到开箱即用的字段中。
实际:未显示新字段。
覆盖 xml 段(userdetails)位于下方(/apps/granite/security/content/userEditor/.content.xml):
<userdetails
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container"
class="well user-details-sections-margin">
<items jcr:primaryType="nt:unstructured">
<extendedInfoContainer
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container"
class="extended-container">
<items jcr:primaryType="nt:unstructured">
<linkedin
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
class="save-button-enabler"
fieldLabel="LinkedIn"
name="./profile/linkedin"
value=""/>
<twitter
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
class="save-button-enabler"
fieldLabel="Twitter"
name="./profile/twitter"
value=""/>
<xing
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
class="save-button-enabler"
fieldLabel="xing"
name="./profile/xing"
value=""/>
<photo
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
rootPath="/content/dam/arvato"
class="save-button-enabler"
fieldLabel="Profile photo"
name="./profile/photo"
value=""/>
</items>
</extendedInfoContainer>
</items>
</userdetails>
我们按照以下说明进行操作:https ://docs.adobe.com/docs/en/aem/6-0/develop/extending/customizing-consoles-touch.html
使用 AEM 6.2,相同的方法在不同的项目中运行良好。