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

Bài đăng

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

How to see .content.xml and .vlt, ... in Eclipse

In cq5 developement, I have seen .content.xml. I donot see it in eclipse though its in my workspace and is visible if I directly browse my workspace through windows explorer. 1/ Just go to Window->Show View->Navigator which will open the navigator tab for project and you can view all hidden files there. 2/ In the package explorer, in the upper right corner of the view, there is a little down arrow. Tool tip will say view menu. Click that, Select Filters. uncheck .* resources. So Package Explorer -> View Menu -> Filters -> uncheck .* resources

How to set up run mode in CQ / WEM

Run modes allow you to tune your CQ instance for a specific purpose; for example author, publish or development. This is done by defining collections of configuration parameters for each run mode. A basic set is applied for all run modes, additional sets are each tuned to the purpose of your specific environment. All configuration settings are stored in the one repository and activated by setting the Run Mode. Standard run modes are: • author • publish You can also create environment specific run mode such as, • author, development • publish, test • author, intranet, us • as required... There are two mechanisms for setting standard and environment specific run mode for your instance: •  To set up standard run mode Use the naming convention: cq-<run-mode>-<port-number> For example, set a standard run mode by naming the jar file cq-author-4502 or cq-publish-4503 •  To set up environment specific run mode there are two methods, 1) Through <cq-installation-dir>/crx-quicks

CQ5: preview mode in sidekick does not refresh automatically

Issue If you are using the sidekick to switch between edit, design and preview modes, you may notice that the pages refreshes automatically when switching to edit and design mode, but not when switching to preview mode. This can cause problems if you are using the  WCMMode  methods and properties in your application to display a different page view depending on the current mode (i.e. using conditional logic based on WCMMode.DESIGN, WCMMode.EDIT and WCMMode.PREVIEW).  If the page does not refresh when switching to preview mode, then it will display the same objects and state as it did in edit mode. Solution The solution is simply to force a page refresh automatically when switching to preview mode. I. If you don't overwrite head.jsp Open  /libs/wcm/core/components/init/init.jsp Add the  previewReload  property as follows and save the changes: CQ.WCM.launchSidekick("<%= currentPage.getPath() %>", { propsDialog: "<%= dlgPath == null ? &quo