As mentioned in the title, I have different modules that I use in a template and I want to use a module's property in an other module. Is there a way to do it in Jahia 7 ?
How to use a module's property in an other module in Jahia 7?
190 views Asked by S. Meziani At
1
Yes, it's possible. The correct way to do that is to include a fragment view of the other module into the main/calling module.
Delegating rendering (Employee definition/module needs to render a field/views from Company definition/module)
mynt_employee/html/employee.jsp
This code delegates the rendering of a company content to the company component
mynt_company/html/company.hidden.name.jsp - You just need to display the field that you want (here the title of Company):