Jahia Dev Forum > Difference between...

0 (0 Good)
0 (0 Bad)

Difference between fork and inheritance of modules

by  fabu »  2012/09/17 09:28

Hello,

I m not sure to understand the difference between twice,

And can I have a sample of inheritance of jnt:article module?

Since, there are two representations:

  • [namespace:myModuleName] > jnt:moduleName
  • extends = jnt:moduleName

What's the difference?

Thanks in advance,

Best regards

  (fabu)

Number of messages  28
Registration date
0 (0 Good)
0 (0 Bad)

Re : Difference between fork and inheritance of modules

by  fabu »  2012/09/20 09:24

I have found this part of documentation and it's very interesting:

http://jackrabbit.apache.org/node-types.html

If you want to add a property to a node type, you could extend a node

And if you want to modify a property from a node type, you can fork one by copy its definition.

 

I think is the answer :-)

  (fabu)

Number of messages  28
Registration date
0 (0 Good)
0 (0 Bad)

Re : Difference between fork and inheritance of modules

by  dgriffon »  2012/09/20 09:43

Hello,

[namespace:myModuleName] > jnt:moduleName

means that you will extends the nodetype and get all properties of the type jnt:moduleName.

[namespace:myModuleName] mixin 
extends = jnt:moduleNames

extends keyword is only use in the engine UI and works only for mixin types, it will display a form (as a checkbox with the mixin name) in the edit engine that allow to add and set the properties defined by the mixin

best regards

David 

David Griffon (dgriffon)

Number of messages  76
Registration date
0 (0 Good)
0 (0 Bad)

Re : Re : Difference between fork and inheritance of modules

by  fabu »  2012/09/20 10:15

David, thanks for the clarification!

  (fabu)

Number of messages  28
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page