Skip to content

Shashi-Bhushan/clientlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AEM-Clientlibs

This a content package project generated using the multimodule-content-package-archetype using command mvn archetype:generate -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2

AEM Version: 6.2

Building

This project uses Maven for building. Common commands:

From the root directory, run mvn -PautoInstallPackage clean install to build the bundle and content package and install to a CQ instance.

From the bundle directory, run mvn -PautoInstallBundle clean install to build just the bundle and install to a CQ instance.

Using with VLT

To use vlt with this project, first build and install the package to your local CQ instance as described above. Then cd to content/src/main/content/jcr_root and run

vlt --credentials admin:admin checkout -f ../META-INF/vault/filter.xml --force http://localhost:4502/crx

Once the working copy is created, you can use the normal vlt up and vlt ci commands.

Specifying CRX Host/Port

The CRX host and port can be specified on the command line with: mvn -Dcrx.host=otherhost -Dcrx.port=5502

Creating First Clientlib

  • Create sling:Folder under /etc/clientlibs
  • Create cq:ClientLibraryFolder under your Folder.
  • Add Clientlib Files.
  • Edit filter.xml.

Embed and Dependencies

  • Creating Depedencies and Embed Clientlibs
  • Difference between the output.

Creating Page Component

  • Added Page template and Page Component (HTML and JSP)
  • Added Content Page

Transitive Addition

  • Possible for Dependencies
  • Not Possible for Embed (only one Level)

Multiple Clientlibs with same Categories

  • Use when adding component specific Clientlib

ClientLibs in Apps Folder

Dumplibs Console (Client Library)

  • Cleaning Clientlibs Cache
  • Finding Clientlib by Category

Minification & Channels

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published