Giter Site home page Giter Site logo

intellij-jcr-plugin's Introduction

Intellij IDEA JCR content editor plugin

The idea behind this plugin is to allow people developing for CQ5 to use intellij for all aspects of development, so that they don't need to utilize CRXDE to edit jcr content (nodes/properties). This plugin provides a way of managing JCR content represented in XML (from the vault tool), and import/export functions to hopefully eliminate the need for the vault tool in the future. As the import/export functions are newer and have less testing, they may vaporize your code and/or CQ5 installation (but you have everything stored in version control, so it doesn't matter, right?). For safety, choose vault. For convenience, use the builtin plugin functions.

Setup

Add the JCR facet to a module. You can change the connection settings if you wish, all though they should work as-is on a vanilla CQ5 installation. You must specify at least one mount point in the "Mount Points" tab.

Mount Points

The idea of a mount point is that a folder in your project should be aliased to a node in the JCR tree of your CQ5 installation. Most plugin operations will only work when activated at or within your file system mount point.

Intended development process using this plugin

  1. Setup the JCR facet
  2. Export a section of the JCR tree to a local folder
  3. Right-click nodes on the file system and select "Edit Node" to edit.
  4. Add new nodes underneath the file system mount point with the "New" menu
  5. Import the content back into the JCR

Note that vault can be used in the import/export steps in place of the plugin, if desired.

Functions

Two new actions are added to the new menu when you right click in the project pane: "New Component" and "New Node". New Component is just New Node where the nodetype is already set to cq:Component. There are also new child node suggestions that are based on the parent node type.

Right clicking on a .content.xml file or its parent folder, you can select "Edit Node" to bring up a dialog for editing node properties.

If you wish to edit content exported by vlt, you can right-click on an xml file (anything created by vlt like dialog.xml, except .content.xml which essentially is already unpacked), and select unpack xml. This creates folders and .content.xml files for the inner nodes of the xml file. After doing so, you will probably want to delete the original xml file.

Vault export will fail with an error if any of the files that would be exported already exist. On the other hand, vault import will delete all the content under the node you're importing to, and then copy over the new content.

Known issues

When importing content to CQ5, the properties for the node you're importing won't be wiped in CQ5. Thus, new properties will be added, but old properties will not be removed

intellij-jcr-plugin's People

Contributors

kairas avatar sfultongv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.