Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing LayerX References #4

Open
josecarlosgt opened this issue Dec 15, 2017 · 2 comments
Open

Removing LayerX References #4

josecarlosgt opened this issue Dec 15, 2017 · 2 comments

Comments

@josecarlosgt
Copy link
Member

References to LayerX are found in 3 locations:

  • src/main/import/repository.xml and repository.xml.generated -> the j:title property.
  • src/main/resources/META-INF/rules.drl.disabled -> the package name in this class.
  • src/main/resources/META-INF/definitions.cnd -> the URL specified for the d content type. It is not possible to update only the URL, since Jahia raises a "duplicate content type definition error" when attempting to do so. Thus, updating the URL might require a fresh install of the whole instance. Unless, there is a way to update only the URL.

In addition, the files in the first two items above seem to be generated with an archetype. Thus, re-generating the bundle with the archetype might be more appropriate than updating the references manually.

@josecarlosgt
Copy link
Member Author

The code was updated by generating the bundle again using the maven archetype:

mvn archetype:generate -Dfilter=org.jahia.archetypes:

Archetype in option 2: org.jahia.archetypes:jahia-module-archetype (Archetype for creating a new module project to be run on a Digital Experience Manager server)

Additionally, Jahia does not support updating the URL used in the definition of existing content. Since the URL for the d content type (d:base) was updated to remove a reference to LayerX, the entire Jahia instance needs to be re-installed. Note that this happens because content-type-related metadata is stored in the repository and cannot be updated manually in the file system or using any other known user interface in Jahia.

@josecarlosgt
Copy link
Member Author

josecarlosgt commented Jan 9, 2018

References removed in: #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant