Posts

Showing posts from January, 2017

having a editable select(drop down) in Adobe AEM

You can add combobox widget with xtype as "combo" in the custom component dialog and add the property  editable  ,value= true. For events and other functions you can refer to https://docs.adobe.com/content/docs/en/cq/5-6-1/widgets-api/index.html

Add new style to list in rtePlugings

Add the list of styles as given below and then in your css file add the check mark image in css rule corresponding to the class name e.g  .className1{ background:url(check.png) 10px 0px  }       jcr:primaryType="cq:Widget"                     fieldLabel="Text"                     height="200"                     name="./text"                     xtype="richtext">                     <rtePlugins jcr:primaryType="nt:unstructured">                         <styles                             jcr:primaryType="nt:unstructured"                             features="*">                             <styles jcr:primaryType="cq:WidgetCollection">                                 <className1                                     jcr:primaryType="nt:unstructured"                                     cssName="className1"                                     text=

AEM 6.1 Touch UI Component Inplace editing

Make sure you have  editorType="text" or editorType="textImage" property  added to the inlineEditing node. Refer to xml below: <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"     cq:actions="[text:Text/Image,-,EDIT,DELETE]"     cq:dialogMode="floating"     cq:layout="editbar"     jcr:primaryType="cq:EditConfig">     <cq:inplaceEditing         jcr:primaryType="cq:InplaceEditingConfig"          active="{Boolean}true"         editorType="text" >         <config jcr:primaryType="nt:unstructured">             <rtePlugins jcr:primaryType="nt:unstructured">                 <subsuperscript                     jcr:primaryType="nt:unstructured"                     features="*"/>             </rtePlugins>         <

adding/updating the fiters using curl command in 6.1

Solution is given in the link below. http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__t7a8-im_using_curlinwin.htm

Sidekick doesn't load

include  <cq:include script="/libs/wcm/core/components/init/ init . jsp "/> 

How to extend sling postservlet in aem for ok button in dialog.

save : function() {             var config = {                 url: 'path to servlet',                ,success: function(){                     CQ.Ext.Msg.show({                         title : CQ.I18n.getMessage('Success'),                         msg : CQ.I18n.getMessage('successfully .'),                         buttons : CQ.Ext.Msg.OK,                         icon : CQ.Ext.Msg.INFO                     });                 },failure: function(){                     CQ.Ext.Msg.show({                         title : CQ.I18n.getMessage('Error'),                         msg : CQ.I18n.getMessage('Save failed, check logs.'),                         buttons : CQ.Ext.Msg.OK,                         icon : CQ.Ext.Msg.ERROR                     });                 }             }; constructor : function(config) {                                      config = CQ.Util.applyDefaults(config, {                 resizable : false,                 float :

CQ/AEM Quick Bits

Image
OSGI 1. Bundles = jar files + Manifest 2. Components = java classes 3. Services = special components used to interact between bundles 4. OSGi is a container in which any bundle can be added at runtime 5. Bundle jar files are dropped in folders called install to add them to CQ Annotations: To add properties @Properties({ @Property(name = "scheduler.expression", value = "*/5 * * * * ?") ,// Every 5 seconds @Property(name = "scheduler.expression.meta", options={ @PropertyOption(name="prop1", value="Option 1"), @PropertyOption(name="prop2", value="Option 2") }), To read properties: componentContext.getProperties().get(“prop-name”).getString(); Sling 1. URL Decomposition – get the contentPath, method and selectors from the URL 2. Content Resolution – identify the content and access the sling:resourceType Property 3. Resource Resolution - /apps or /libs 4. Script Resoluti

CQ interview questions

INTERVIEW CRACKER Explain Architecture of AEM Difference between AEM and CQ5 How many repositories we can use in AEM How to identify the number of author/publish instances/servers required in a AEM project How to create custom component How to create Dialog: classic and touch UI How to create dialog listeners How to create client libs How to include clientLibs in sightly How to include component/clientlibs in jsp/sightly What is allowedPaths property what is parsys SIdekick not loading ! what can be the issue ? component not loading in sidekick ! what can be the issue? Component group not available in design mode ! what can be the issue? How to create scheduler/importers Annotations used in OSGI Difference between osgi component and service How to create workflow ? interfaces used in workflow steps Explain dialog structure  How to create custom widget What is the method to register custom widget How to configure dispatcher ? What is live copy ?  What is M