- Difference between CRX/Jackrabbit and JCR?
- How Sling resolves a URL?
- What is OSGi framework?
- What are OSGi layers?
- What is dependency management in OSGi?
- How to create an OSGi bundle?
- How to convert JAR to OSGi bundle?
- What are OSGi annotations?
- What are job schedulers?
- What are listeners?
- How many ways you install a OSGi bundle?
- How to do custom configuration through OSGi container?
- How to create overlay component?
- What is Parbase?
- What is architecture of your project?
- What is cq:EditConfig?
- What are ClientLibs?Dependency in Client Library?
- What is a Launcher? What is a Scheduler?
- How to move content from one server to another? In how many ways?
- What is DMZ?
- What is Component context?
- What is Page manager?
- What is SlingPostServlet?
- What is Resource resolver?
- How to Manage Events in Sling?
- How to do Event Handler?
- How would you display a list(selection) which is from database/crx/data as dropdown(Dynamic) in a Dialog?
- A page is cached in webserver, but it has to show the current date and time at the end of the page. How will you show that?
- How does CQ maintains different language content?
- How CQ handles GET and POST methods? Get and POST scenario of a page.?
- How CQ handle POST method data?(using form)?
- Integration between AEM and Test&Target?
- Any third party integration?
- AEM - Dispatcher configuration?
Beginners Guide: AEM
An Easy way to learn AEM!!!
Saturday, March 5, 2016
CQ5/AEM Interview Questions List 2
CQ5/AEM Interview Questions List 1
- What is CMS?
- What is CQ5/AEM?
- What are other CMS products you worked?(If any)
- What is the Technology stack of CQ5?
- What is JCR/Sling/OSGi?
- Difference between JCR and CRX?
- Difference among version 5.4, 5.5, 5.6, 6.0, 6.1?
- What is the life cycle of OSGi bundle?
- What are different status of a budle in OSGi?
- What is Template? How to Create one?
- What is sling:resourceType/rank when creation of template?
- What does allowedPaths mean and its use?
- What is Activate?
- Ways to activate a page?
- Web consoles in AEM?
- What is the main feature of DAM?
- What is a Component?
- What is page rendering Component?
- How will you create page component?
- Why and use of global.jsp?
- How do you use currentNode, currentPage etc in a page?
- What does it show currentNode.getPath() and currentPage.getPath()?
- What is selector in URI?
- Is sidekick displayed in page by default?
- How to initialize WCM?
- What is difference between sling:resourceType and sling:resouceSuperType?
- What is difference between Dialog and Design dialog?
- What is a Widget?
- What is the use of XTYPE?
- Where does the Design configuration of a template get saved in CRX?Path?
- What is parsys?
- Difference between parsys and iparsys?
- What is Activator.java in bundle?
- What is i18n or intenationalization? Why we need i18n?
- Where this i18n values stored?
- How does CQ maintains different language content?
- Difference between cq:include and sling:include?
- How to use fmt tag?
- What is Workflow?
- What is workflow Launcher?
- What are the different ways to start a workflow?
- If you drag and drop a component into parsys and add content, Where does that content get stored and give node path?
- Difference between text and richtext component?
- If you create a content in richtext component, you do bold, create bullets, numbers etc., How and where does it get stored in the node properties?
- What is reverse replication?
- Where do you configure replication agents(author/publish)? And Where(tool path)?
- What are the other agents other than replication/reveserse replication agents?
- What is the replication and reverse replication process?
Tuesday, March 1, 2016
Disable Activate and Deactivate Buttons in Sidekick based on user persmission in CQ5/AEM page
1) Create a folder skdisable under /apps i.e /apps/skdisable
2) Create a clientLibs folder under skdisable i.e /apps/skdisable/clientLib
Add below property to this folder
categories String cq.widgets
3) Create a buttonsdisable.js file under clientLib folder i.e /apps/skdisable/clientLib/buttonsdisable.js
Add below code in the buttondisable.js
(function(){
if( ( window.location.pathname == "/cf" ) || ( window.location.pathname.indexOf("/content") == 0)){
var SK_INTERVAL = setInterval(function(){
var sk = CQ.WCM.getSidekick();
var curPage = CQ.WCM.getPagePath();
if(CQ.User.getCurrentUser().hasPermissionOn("replicate", [CQ.WCM.getSidekick().getPath()])!=true){
if(sk && sk.panels){
clearInterval(SK_INTERVAL);
var pagePanel = sk.panels["PAGE"];
var buttons = pagePanel.findBy(function(comp){
return comp["name"] == "PUBLISH" || comp["name"] == "DEACTIVATE";
}, pagePanel);
CQ.Ext.each(buttons, function(button){
button.setDisabled(true);
});
}
}else{
return;
}
}, 250);
}
})();
4) Create a js.txt file under clientLib folder i.e /apps/skdisable/clientLib/js.txt
Add below line in js.txt
buttonsdisable.js
5) Now go to http://localhost:4502/useradmin , Select an user and remove replication permission for /content/geometrix site. Login with that user credentials.
6) Open any geometrix page and check sidekick,you will see Activate and Deactivate buttons disabled.
2) Create a clientLibs folder under skdisable i.e /apps/skdisable/clientLib
Add below property to this folder
categories String cq.widgets
3) Create a buttonsdisable.js file under clientLib folder i.e /apps/skdisable/clientLib/buttonsdisable.js
Add below code in the buttondisable.js
(function(){
if( ( window.location.pathname == "/cf" ) || ( window.location.pathname.indexOf("/content") == 0)){
var SK_INTERVAL = setInterval(function(){
var sk = CQ.WCM.getSidekick();
var curPage = CQ.WCM.getPagePath();
if(CQ.User.getCurrentUser().hasPermissionOn("replicate", [CQ.WCM.getSidekick().getPath()])!=true){
if(sk && sk.panels){
clearInterval(SK_INTERVAL);
var pagePanel = sk.panels["PAGE"];
var buttons = pagePanel.findBy(function(comp){
return comp["name"] == "PUBLISH" || comp["name"] == "DEACTIVATE";
}, pagePanel);
CQ.Ext.each(buttons, function(button){
button.setDisabled(true);
});
}
}else{
return;
}
}, 250);
}
})();
4) Create a js.txt file under clientLib folder i.e /apps/skdisable/clientLib/js.txt
Add below line in js.txt
buttonsdisable.js
5) Now go to http://localhost:4502/useradmin , Select an user and remove replication permission for /content/geometrix site. Login with that user credentials.
6) Open any geometrix page and check sidekick,you will see Activate and Deactivate buttons disabled.
Wednesday, December 23, 2015
Setup AEM Development environment in windows
What you need?
1) Java JDK
2) cq5-author-p4502.jar and a valid licence.properties file
3) Maven
4) Eclipse with below plugins
- maven
- vlt
- aem dev tools
- sling for eclipse
- sling for eclipse
_________________________________________________________________________________
1) Install JDK
2) Install AEM:
- Double click on the cq5-author-p4502.jar file, it opens a window as below
- After installation, it automatically opens http://localhost:4502/libs/granite/core/content/login.html page in your browser. It take some time to install and start your aem application for the first time.
- Please sign in with default credentials: - username : admin/password: admin
4)Install Eclipse:
- Download latest eclipse version from https://eclipse.org/downloads/ and install.
Launch Eclipse and
- Click on Help on the menu bar
- Click on Eclipse Marketplace...
- Type Maven find box in search tab and enter
- Scroll down the list to find Maven Integration for eclipse(Juno or newer)
- Click Install
- Click Confirm
6) Install Eclipse Plugins:
Lauch Eclipse and
- Click on Help
- Install New Software
- Download and install following plugins
- Sling for Eclipse - http://apache.mirrors.lucidnetworks.net/sling/eclipse
- AEM dev Tools - http://eclipse.adobe.com/aem/dev-tools/
- Locate a FileVault zip file in the folder /crx-quickstart/opt/filevault/filevault.zip
- Extract the zip file
- Add ...\bin\ folder of the FileVault location to the environment variables.
- Add that variable to the environment PATH so that the command files vlt or vlt.bat are accessed as appropriate.
Subscribe to:
Posts (Atom)