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

  • Difference between fork and inheritance of modules
    2012/09/17 13:38

    fabu <p> Hello,</p> <p> I m not sure to understand the difference between twice,</p> <p> And can I have a sample of inheritance of jnt:article module?</p> <p> Since, there are two representations:</p> <ul> <li> [namespace:myModuleName] &gt; jnt:moduleName</li> <li> extends = jnt:moduleName</li> </ul> <p> What&#39;s the difference?</p> <p> Thanks in advance,</p> <p> Best regards</p>

  • Number of messages  28
    Registration date Sep 17, 2012
    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 :-)

  • Re : Difference between fork and inheritance of modules
    2012/09/20 09:24

    fabu <p> I have found this part of documentation and it&#39;s very interesting:</p> <p> <a href="http://jackrabbit.apache.org/node-types.html">http://jackrabbit.apache.org/node-types.html</a></p> <p> If you want to add a property to a node type, you could extend a node</p> <p> And if you want to modify a property from a node type, you can fork one by copy its definition.</p> <p> &nbsp;</p> <p> I think is the answer :-)</p>

  • Number of messages  28
    Registration date Sep 20, 2012
    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!

  • Re : Re : Difference between fork and inheritance of modules
    2012/09/20 10:15

    fabu <p> David, thanks for the clarification!</p>

  • Number of messages  28
    Registration date Sep 20, 2012
    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