How to override default views?

  Written by The Jahia Team
 
Developers
  view
   Estimated reading time:
7.1.2.1

How to override default views?

Answer

To override views, you can use the Jahia-Module-Priority in your modules, which influences the view resolution.

Something similar to:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <extensions>true</extensions>
            <configuration>
                <instructions>
                    ...
                    <Jahia-Depends>default, XXX</Jahia-Depends>
                    <Jahia-Module-Priority>10</Jahia-Module-Priority>
                    ...
                </instructions>
            </configuration>
        </plugin>
    </plugins>
</build>