CQ5Saver
Plugin that will post files to CQ5's sling post servlet. Handles * dialog.xmls * .coffee files * .js and most any file that would live underneath your 'jcr_root' top level folder
Details
Installs
- Total 511
- Win 281
- Mac 190
- Linux 40
May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- bitbucket.org
Cscope
A plugin to post to CQ5, using sublime text. Leverages the SlingPostServlet (as documented here) http://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html.
Features
This plugin supports most file types that will be PUT or POST-ed to CQ5.
- jsp's / other scripting languages
- 'plain' xml files
- static files
- design_dialog.xml
- dialog.xml
TODO –> add .content.xml, cq_edit config.xml support TODO –> add HTTPS support
Installation
Check out the repo under your “Packages” directory or install via Package Control and restart Sublime Text 3. Please note, Sublime Text 2 is not supported at this time The package control name is 'CQ5-Saver'
Logging
Upon successful save to CQ5, the console will log the destination path and the corresponding status code response from the server to the std out. (press ctrl + tilde) - 204 : No Content (successful) - 201 : Content created (succesful)
Configuration
If you wish to change the way CscopeSublime behaves, you may pass arguments to override any of the following default variables
host = "http://localhost:4502/"
username = 'admin'
password = 'admin'
COFFEE_SUFFIX = ".coffee"
JS_SUFFIX = ".js"
XML_SUFFIX = ".xml"
COFFEXEC = 'coffee.cmd'
JCRROOT = "jcr_root\\"
ENC = 'utf-8'
DIALOG = "dialog.xml"
DESIGN_DIALOG = "design_dialog.xml"
JCR_CONTENT = ".content.xml"
CLIENTLIB = "clientlibs"
TIMEOUT = 2
Syntax for the args can be seen in the .sublime-commands file located in this repo (i.e.) –> “args”: {“host”: “http://localhost:4503/”, “username” : “admin”, “password” : “admin”}
Keybindings
Ctrl/ + Shift + s
- Deploy to CQ5 on localhost:4502 with basic auth (admin:admin)
Coffee compilation
This plugin will compile 'on the fly', bare javascript from your .coffee files, directly to the corresponding JCR path
Notes
The plugin looks within the path for a folder labeled “jcr_root\”. This can be overriden by passing in an arg “JCRROOT”, in case your specific folder structure does not match jcr_root\apps\yourapp\blablabla
Bugs / Features / Forking
By all means, please fork this repo and update the code base if you find any room for improvement, of which I'm sure there is plenty. This is my first stab at using python. Please drop a bug in the issue tracker if you find any problems.
License
This whole package is distributed under the MIT license.