Installation
Brackets
The AEM Brackets Extension supports Brackets version 1.0 or greater.
Download the latest Brackets version from brackets.io.
The Extension
To install the extension proceed as follows:
-
Open Brackets. In menu File, select Extension Manager…
-
Enter AEM in the search bar and look for AEM Brackets Extension.
-
Click Install.
-
Close the dialog and Extension Manager after the installation completed.
Getting Started
The Content-Package Project
After the extension has been installed, you can start developing AEM components by opening a content-package folder from your file system with Brackets.
The project has to contain at least:
-
a
jcr_root
folder (e.g.myproject/jcr_root
) -
a
filter.xml
file (e.g.myproject/META-INF/vault/filter.xml
); for more details about the structure of thefilter.xml
file please see the Workspace Filter definition.
In Brackets’ File menu, choose Open Folder… and pick either the jcr_root
folder, or the parent project folder.
jcr_root
folder in Brackets. Then follow the steps below to setup the Project Settings, and finally upload the whole package to your AEM development instance by doing an Export Content Package as instructed further down in the Full Content-Package Synchronization section./content/todo.html
URL on your AEM development instance and you can start doing modifications to the code in Brackets and see how, after doing a refresh in the web browser, the changes were immediately synchronized to the AEM server.Project Settings
In order to synchronize your content to and from an AEM development instance, you need to define your Project Settings. This can be done by going to the AEM menu and choosing Project Settings…
The Project Settings allow to define:
- The server URL (e.g.
http://localhost:4502
) - Wether to tolerate servers that don’t have a valid HTTPS certificate (keep unchecked, unless required)
- The username used for synchronizing content (e.g.
admin
) - The user’s password (e.g.
admin
)
Synchronizing Content
The AEM Brackets Extension provides following types of content synchronization for files and folders that are allowed by the filtering rules defined in filter.xml
:
Automated Synchronization Of Changed Files
This will only synchronize changes from Brackets to the AEM instance, but never the other way around.
Manual Bidirectional Synchronization
In the Project Explorer, open the contextual menu by right-clicking on any file or folder, and the Export to Server or Import from Server options can be accessed.
jcr_root
folder, the Export to Server and Import from Server contextual menu entries are disabled.Full Content-Package Synchronization
In the AEM menu, the Export Content Package or Import Content Package options allow to synchronize the whole project with the server.
Synchronization Status
The AEM Brackets Extension features a notification icon in the toolbar on the right of the Brackets window, which indicates the status of the last synchronization:
- green - all files have been synchronized successfully
- blue - a sync operation is in progress
- yellow - some of the files were not synchronized
- red - none of the files were synchronized
Clicking on the notification icon will open the Synchronization Status report dialog that lists of all the status for each synchronized file.
filter.xml
will be synchronized, regardless of the synchronization method used..vltignore
files are supported for excluding content from synchronizing to and from the repository.Editing HTL Code
The AEM Brackets Extension also features some auto-completion to ease the writing of HTL attributes and expressions.
Attribute Auto-Completion
- In an HTML attribute, type
sly
. The attribute is auto-completed todata-sly-
. - Select the HTL attribute in the dropdown list.