Chuyển đến nội dung chính

Bài đăng

Đang hiển thị bài đăng từ Tháng 10, 2013

How to add a new supported language in CQ / WEM (Translator in CQ)

Use case:  You want to add new language to CQ Change display language options in translator grid Change language name and default countries  Solution: You can access translator UI in CQ with following URL http://<HOST>:<PORT>/libs/cq/i18n/translator.html Create new language location for Dictionary Go to CRXDE lite (or your favorite JCR browser) and add this structure (assuming /apps/myapp/i18n as a typical location for custom apps): /apps/myapp/i18n [sling:Folder]     - de [nt:unstructured]         + jcr:mixinTypes = [mix:language]         + jcr:language = de     - fr [nt:unstructured]         + jcr:mixinTypes = [mix:language]         + jcr:language = fr Then reload the translator and the path /apps/ myapp /i18n should show up in the drop-down at the top. Note: the translator will only s...

How to install Multiple Package in CQ / WEM

Use Case:  You have a Hotfix that has many dependencies and you want to install them in order Or you want all packages to install in particular order. Installing through package manager can be time consuming process. Solution:  When CQ starts up it checks /crx-quickstart/repository/install till  CQ5.4  and  /crx-quickstart/install for  CQ5.5 & 5.6  folder for any new package and install them in alphabetical order. So for example you have a package which has many dependencies, You can rename them in alphabetical order and put them in /crx-quickstart/repository/install folder. Next CQ restart will make sure that they are installed in that order. For example, If you have Zip file name p001-hotfix-<Some-number>.zip and p002-hotfix-<some-number> under install folder, then p001 will get installed first and then p002 upon restart. After initial installation CQ creates properties file (some thing like <your-package-name>.propert...

How to change Admin password in CQ5.5 & 5.6

Use case  Change admin password  Good news  Till now you have to change admin password at multiple location if you are using CQ5.4, see here   From CQ5.5 onward you just have to change admin password once. There are multiple ways though, 1) Using CRX explorer (Old way) 2) Using granite http://host:port/libs/granite/security/content/admin.html#edit:/home/users/a/admin 3) using curl command curl -u admin:OLD_PWD -F rep:password="NEW_PWD" http://host:port/home/users/a/admin.rw.html You can also use security API for do user related task, Something like this curl -d "createUser=true&authorizableId=$userId&rep:password=pw&membership=administrators" -u "admin:admin" http://host:port/libs/granite/security/post/authorizables (There is set of operation you can do using this, JAVA DOC coming soon) For any other user other than admin you can use CURL to change password as curl rep:password="test" --user admin:ADMIN_PASSWORD http://host:port/home/...