since ‎29-09-2013
‎20-11-2020
Runal_Trivedi
MVP
Re: How to reduce page load time for CQ5 Pages?
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can do following to reduce your page load time:For Initial analysis of time load for a page, have CQ OOTB Timing component added to the page as it reports the time taken by each component to load and a page.More on how to use timing component - http://www.wemblog.com/2014/05/how-to-find-component-load-time-on-page.htmlThis will help you to identify components that takes more time to load which you can then fix or live with.Cache as much content as possible (this would be done with the help o...

Views

355

Likes

0

Replies

0
Re: How to find brief history of component?
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can use OOTB Component Reporting.http://localhost:4502/etc/reports/compreport.htmlHere you can also add filter if you are looking for usage of specific component under the content tree.- Runal

Views

181

Likes

0

Replies

0
Re: RTE- How to add dynamic values in between content
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Approach 1:RTE has got a plugin called InsertVariablePlugin, it pretty much does the same, inserts the dynamic values in RTE content.2 OOTB RTE configuration examples you can refer to:/libs/mcm/components/newsletter/footer/dialog/items/text/rtePlugins/insertvariable/variablesIt is newsletter text component./libs/mcm/components/newsletter/footer/dialog/items/text/rtePlugins/insertvariable/variables/givenNameIt is newsletter footer component.More on InsertVariablePlugin can be found on widget API ...

Views

867

Likes

0

Replies

0
Design Dialog configuration in AEM 6.0
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi Everyone,I wanted to know how do we do design dialog configuration for components using Touch UI in AEM 6.0? I could not find the design view option anywhere. Also I went through the authoring AEM 6.0 documentation but there too I couldn't find the details.Do we have to resort to classic view for design level configuration on pages? or there is some other option for it?Thanks in advance.-Runal

Views

226

Likes

0

Replies

1
Re: RTE - How to add dynamic value in between content
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Approach 1:RTE has got a plugin called InsertVariablePlugin, it pretty much does the same, inserts the dynamic values in RTE content.2 OOTB RTE configuration examples you can refer to:/libs/mcm/components/newsletter/footer/dialog/items/text/rtePlugins/insertvariable/variablesIt is newsletter text component./libs/mcm/components/newsletter/footer/dialog/items/text/rtePlugins/insertvariable/variables/givenNameIt is newsletter footer component.More on InsertVariablePlugin can be found on widget API ...

Views

754

Likes

0

Replies

0
Re: Difficulty on activating an osgi bundle
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
In the error snap that you have attached at the start, you are trying to import a package that you have declared as private package in your maven-bundle-plugin, which is com.headwire.cqblueprints.examples.osgiAny package declared as private cannot be consumed by any other OSGI bundle.If you simply looking for tutorial on how to create an OSGI bundle then following link on dev.day would helphttp://dev.day.com/docs/en/cq/aem-how-tos/development/how-to-build-aem-projects-using-apache-maven.htmlMore...

Views

661

Likes

0

Replies

0
Re: Difficulty on activating an osgi bundle
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
I guess the POM Entries that you have mentioned are from your project POM file?Also I see com.headwire.cqblueprints.examples.osgi is declared as private package, any specific reason?Below is what you can do:1 - Embed the jar exposing headwire.cqblueprints into your Project Bundle:Since you have mentioned that while building the code you are not facing the issues and only while deploying the bundle is not getting activated, can you then check whether the compiled bundle.jar contains the headwire ...

Views

663

Likes

0

Replies

0
Re: Difficulty on activating an osgi bundle
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Or if the bundle is present in your OSGI container then it doesn't expose the desired package via its manifest file.To see whether any of the bundle output the desired package; use the dependency finder console of Felix - http://localhost:4502/system/console/depfinderput the package declaration and click on find. It will give you the information about bundle present in your OSGI that exposes the provided package.- Runal

Views

668

Likes

0

Replies

0
Re: about how to add style in cq:text
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
If you are using RTE then you can use Justify or Styles plugin for the same. If you are not using RTE then you can have a tab and a widget of xtype - componentstyles.With component styles you can provide options to wrap the content of component with custom styles.Take a look at foundation textimage component (/libs/foundation/components/textimage/dialog/items/tab4)Drag textimage component in parsys container of any geometrixx page made with template Geometrixx Content Page (http://localhost:4502...

Views

212

Likes

0

Replies

0
Re: Generated DIV section modification in ADOBE CQ
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can use componentStyles xtype in your dialog to get styles configuration.There you can have a drop down of style class to be applied. Drop down mean xtype-selection, values of styles dropdown can be provided using JSON call and with optionsProvider property of xtype-selection widget.i.e. drop down values can be autogenerated using optionsProvider and JSON call.With componentStyles xtype what ever values you select gets applied to autogenerated div class along with its standard generated clas...

Views

195

Likes

0

Replies

0
Re: Variable replacement inside components
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
There may be more better approaches to it, but below is what first clicked to me.I could currently think of 2 possible approaches.First you need to centralize your source of getting dynamic values, make it provide you a map (will be used if you opt for server side logic) or JSON (will be used if you opt for client side logic) of possible dynamic key and values, this you would need for both approaches I am going to suggest.Doing it server side:You can use output rewriting mechanism of Sling to do...

Views

226

Likes

0

Replies

0
Re: Edit bar
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
In case you want to customize the behavior of edit button then yes you will need to overlay EditBar.js.But if you simply want to create your custom action in editBar like edit button then you can follow below steps:create cq:editConfig node for your componentcreate a child node of cq:editConfig of type nt:unstructured having name - cq:actionConfigsunder cq:actionConfigs you can create custom buttons in form of nodes and create their corresponding JS handlers (follow example shared on dev.day lin...

Views

149

Like

1

Replies

0
Re: how to validate an user to a segment
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
If you can get the same user on author then below steps will help:open any content page of you site where client context is available.open the client context modalmake sure your client context contains resolved segment Client context component (default one does contain it at the end)impersonate the user to your required user and see the resolved segments change, it will list all the segments resolved for that user.If you want to go via API then you can use read the value of CQ_Analytics.SegmentM...

Views

161

Likes

0

Replies

0
Re: xtype datetime field: time selection drop down box is too small even thought timeWidth is defined in the dialog
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi,I created a datetime dialog field as mentioned but for me the time dropdown was of proper width.Is it possible for you to post your entire dialog XML? along with any edit config nodes and other dialog nodes that you might have in your dialog? This will help analyze your issue in detail.

Views

216

Likes

0

Replies

0
Re: Query Builder
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi Siva,The issue with query that you have mentioned is; group.p.or is set to true whereas if you observe the querybuilder.json I pasted, it contains group.p.or=false, if it is set to false then it means you are putting & conditions between your criterias and it should work then.Right now in query for data you mentioned, condition for startdate does not match but condition for expiry date matches and since group.p.or is set to true (which is OR Condition) hence the overall condition becomes true...

Views

322

Likes

0

Replies

0
Re: Query Builder
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi Siva,Based on the condition and criteria you mentioned, I guess below query would suffice your need.Using querybuilder json it would be as below:http://localhost:4502/bin/querybuilder.json?type=cq:Page&group.p.or=false&group.1_daterange.property=jcr:content/expirydate&group.1_daterange.lowerBound=2014-07-13&group.1_daterange.lowerOperation=%3E%3D&group.2_daterange.property=jcr:content/startdate&group.2_daterange.upperBound=2014-07-30&group.2_daterange.upperOperation=%3C%3DIf you want to go vi...

Views

303

Likes

0

Replies

0
Re: Restrict rootPath of RTE link plugin
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Do write back if it works so that others too get benefited.Thanks-Runal

Views

325

Likes

0

Replies

0
Re: Restrict rootPath of RTE link plugin
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi Dim,We had similar requirement and we were using AEM version 5.6.1.These might not be the best approaches but we figured out 2 possible ways of doing it:1. Overlaying OOTB js fileSteps: We created linkDialogConfig node, for e.g. /libs/foundation/components/text/dialog/items/tab1/items/text/rtePlugins/links/linkDialogConfig On this node we configured necessary properties (see the screenshot) which we will read in step 3.[img]Approach1.jpg[/img] Overlay LinkDialog.js which is at location - /lib...

Views

333

Likes

0

Replies

0
Re: Search Component With JQuery and AJax
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi Sham,Will it also offer the degree of control on Suggestions? I mean what should get offered and what not.I went through the article and it seems it will index all the properties mentioned which means all the indexed content would come up as suggestions. Is there a way to limit it?ThanksRunal

Views

276

Likes

0

Replies

0
Re: Granite JS and CSS files loaded twice
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi Jitendra,As far as I know there is no way to avoid it from happening.First of all let me explain you why it happens: When you load the page with contentfinder then your actual page gets loaded in iframe, so if you access URL - localhost:4502/cf#/content/geometrixx/en.html then content/geometrixx/en.html is loaded in a separate iframe in your page document (You can validate that using firebug). Now when you load content finder the HTML gets rendered from following script - /libs/cq/ui/componen...

Views

331

Likes

0

Replies

0
Re: RTE customize hyperlink
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You will need to overlay the entire path from libs to apps.i.e. /libs/cq/ui/widgets/source/widgets/form/rte/plugins/LinkDialog.js to /apps/cq/ui/widgets/source/widgets/form/rte/plugins/LinkDialog.jsUnfortunately the forum doesn't allow to attach the zip otherwise I would have attached it here.Send me your email id and I will post you the package there.ThanksRunal

Views

454

Likes

0

Replies

0
Re: RTE customize hyperlink
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi,I guess below steps would help you achieve what you have mentioned:Steps:First of all you will need to overlay OOTB LinkDialog.js file.Current location of LinkDialog.js is - /libs/cq/ui/widgets/source/widgets/form/rte/plugins/LinkDialog.jsOverlay the path and bring it under appsYou will need to define the buttons config in default constructor i.e. under var defaultsAdd below button config to itvar defaults = { "title": CQ.I18n.getMessage("Hyperlink"), "modal": true, "width": 400, "height": 16...

Views

448

Likes

0

Replies

0
Re: Edit Bar of component disappearing
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Is it not displaying the editbar or the content of component as well? check your error.log to see if it has any error, you can also try removing the cq:editConfig and revert to default dialog editing option so as to rule out the case of cq:editConfig being a faulty node.

Views

222

Likes

0

Replies

0
Re: childEditConfig node not working as expected.
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
foundation/components/iparsys would be a good reference to identify any configuration miss. It has childEditConfig node through which it inherits cq:actions to child component dragged in iparsys container.

Views

517

Likes

0

Replies

0
Re: Reference Components
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can follow below steps to achieve it:If you component can be dragged in container then:On your main page drag the component in parsys container and configure it with dataOr you can create a config admin only page with parsys container (contains only parsys in JSP Script)Once you have configured it then on rest of the pages you can use OOTB Reference component and link it to the content that you configured in step-1.Any changes now you make on content on page of step-1 will automatically get ...

Views

249

Likes

0

Replies

0
Re: Handling custom localized error pages
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
One way to solve this could be - maintain a map in etc/map for all domains versus their locale path.. in your error page then read the domain which you can resolve it to its corresponding content structure using resourceresolver. Once you have your content locale path, suffix it with error page identifier and serve the response.

Views

318

Likes

0

Replies

0
Approach for personalization when traits unique posibilities are quite high
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi All,I wanted to poll the group for one requirement that I had on hand. Requirement is pretty simple, I need to personalize content on basis of some numeric code value. Content that I need to personalize is also pretty simple, just Image and some text.The main issue is, number of unique numeric codes are pretty high, we have close to 3000 such code on basis of which we need to do personalization.I had following queries for the stated requirement:What would be the performance impact if I create...

Views

241

Likes

0

Replies

0
Re: Where is user data stored for a forum stored?
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Just to rule out the case of caching you can put some query parameter to your page URL and see the behavior, if you still see the UGC content, if it is still coming up then it means it is still in AEM.

Views

304

Likes

0

Replies

0
Re: Dynamic message key for i18n
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
You can first concat it into one string and assign it to sightly variable using data-sly-test. See the snippet belowValue - ${i18key @ i18n}You can also use @format to form a single string and assign it to sightly variable using data-sly-test.Value - ${key @ i18n}I guess above should help.Cheers- Runal

Views

529

Likes

0

Replies

0
Re: Help on using Repository repository = JcrUtils.getRepository("http://localhost:4502/crx/server");
Avatar

Runal_Trivedi

MVP

Runal_Trivedi
- Adobe Experience Manager
Hi Clive,If your need is to only list down the select options dynamically then you can also drive it from servlet of JSP file.refer to foundations, list component - /libs/foundation/components/list/dialog/items/list/items/displayAs to know how you can do it.Also can you put down the details why you are trying to get repository reference? if you simply want to drive drop down options from somewhere else in repository like etc/dropdownnodes/node1 etc.. then you can directly get the parent node ref...

Views

356

Likes

0

Replies

0