Parbase组件的用途是什么: [英] What is the use of Parbase component:

查看:78
本文介绍了Parbase组件的用途是什么:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白CQ5中是否需要parbase组件。根据我在CQ5文档中阅读的内容,parbase是一个可以从其他组件扩展的组件。但是,所有组件都可以通过指定sling:resourceSuperType属性来扩展其他组件。那么对parbase组件有什么需求?

I couldn't understand the need for a parbase component in CQ5. From what I read in CQ5 documentation, parbase is a component that can extend from other components. But all the components can extend other components by specifying sling:resourceSuperType property. So what is the need for a parbase component?

推荐答案

根据Day文档, parbase允许组件从其他组件

As per the Day documentation, "The parbase allows components to inherit attributes from other components"

如果您在 / libs / foundation / components下进行检查,则大多数可编写和可拖动的组件都将 parbase设置为其 sling:resourceSuperType这样,当它们添加到Paragraph系统(Parsys组件)中时,它们就可以继承图像和文本渲染属性。

If you check under "/libs/foundation/components", most of the authorable and draggable components have 'parbase' set as their 'sling:resourceSuperType' so that they can inherit the image and text rendering properties when added to a Paragraph system (Parsys Component).

这是一个标准,后面是所有-CQ5中的Box组件。

This is a standard followed by all the Out-Of-the-Box components in CQ5.

在创建自己的组件时,不需要添加 parbase作为超类型,除非需要在parsys中通过拖放来启用组件。

While creating your own components, you don't need to add 'parbase' as a supertype, unless your components need to be enabled with drag-drop in a parsys.

AFAIK,从来没有明确使用过parbase组件,而只是将其添加到Parsys中时才便于呈现该组件。

AFAIK, the parbase component is never used explicitly, but only facilitates the rendering of a component when added in the Parsys.

这篇关于Parbase组件的用途是什么:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆