微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

支持用于创建体验片段模板的 xfPage 组件的 OOTB slign 模型是什么?

如何解决支持用于创建体验片段模板的 xfPage 组件的 OOTB slign 模型是什么?

我打算创建一个吊索模型来扩展 OOTB xfPage 组件 /libs/cq/experience-fragments/components/xfpage

我在 apps/myProjecy/cpomponent/xfPage --> 上创建了一个代理 xfPage 组件,其 sling:resourceSupertType = /libs/cq/experience-fragments/components/xfpage

我在 content/experience-fragments/myContentFolder/exp-fragment-master/variant 下有一个使用 xfPage 模板创建的体验片段。

是否有我可以在下面的模型中使用的 xfPage 实例?

@Model(
        adaptables = {SlingHttpServletRequest.class},adapters = { ComponentExporter.class,ContainerExporter.class,Page.class},defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL,resourceType = "myProjecy/cpomponent/xfPage"
        )

@Exporter(name = "jackson",extensions = "json") 
@JsonSerialize(as = xfPageModel.class)

public class xfPageModel {

@Self
@Via(type = ResourceSuperType.class)
private xfPage xfPage ;
}


版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。