Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

BrianKasingli
Community profile BrianKasingli MVP
Senior AEM & Full Stack Software Engineer
London UK / Vancouver BC
27 BADGES
MVP

MVP

Learn more
Joined the community 21-10-2011 8:45:01 AM
Online
Top badges earned by BrianKasingli
Customize the badges you want to showcase on your profile
Re: Rendering cq:template nodes in component html
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@keerthana_hn ,If I am trying to understand you right, you are trying to embed an image or some kinda HTML to your pages, all pages who uses the "content template".If you look at my diagram, we need to understand first, how the cq:template is being referenced from an AEM page. In this example, we will look at the home page node.From the homepage node, under the jcr:content node, you will find a property named cq:template; this value is the reference to the static and/or editable template. In thi...

Views

55

Like

1

Replies

0
Re: can we send an email from Cloud AEM servlet?
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@TB3dock, you can hard code "bufString" with your HTML template string.

Views

46

Likes

0

Replies

0
Re: can we send an email from Cloud AEM servlet?
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@TB3doc, a Sling Servlet in AEM will satisfy all your requirements. Take this example below where it is an example of a servlet sending out an email from an AEM instance.https://www.albinsblog.com/2014/12/sending-mail-through-java-api-with_17.html#.YOyOmhNKhQI However, if you are working on a large-scale website, then I would recommend a micro-services architecture. With the micro-services architecture, this will not overtake AEM publisher resources, resulting in a more performant environment fo...

Views

63

Likes

2

Replies

2
Re: Navigation Panel misisng in local setup
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@akank_23,Can you share a screenshot, please?Can you also share your error log files as well, please?

Views

70

Like

1

Replies

0
Re: OSGI Config
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@arvind ,for your scenario, I suggest using Apache Sling Context-Aware ConfigurationThe application needs different configuration for different sites, regions and tenants = different contexts. Some parameters may be shared, so inheritance for nested contexts and from global fallback values is supported as well. You have full control which content subtrees are the contexts in your application, the structure above is only an example.Using the Context-Aware Configuration Java API you can get the ma...

Views

85

Likes

3

Replies

0
Re: How to minimize this jquery code
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@sampath_kumar_g Your code can be refactored. Why are you writing CSS with Javascript, it seems inefficient? The code can be refactored here, for example: 1.$( "table" ).css( "color", "#222222" );$( "table" ).css( "font-size", "14.0px" );$( "table" ).css( "font-family", "Arial , Helvetica , sans-serif" ); can be written like:$("table").css({ "color": "#222222", "font-weight": "14.0px", "font-family": "Arial , Helvetica , sans-serif" });documentation: https://api.jquery.com/css/ 2. I recommend br...

Views

58

Likes

2

Replies

0
Re: OSGi multi field creation
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@manikanthar1295,Please refer to this OSGI R6 Configuration @AttributeDefinition Essentials Reference Guide, during the development of your OSGI configurations, https://sourcedcode.com/blog/aem/osgi-r6-configuration-attributedefinition-essentials-reference-guide#attribute-type-string-arrayThis will allow you to quickly craft together your OSGI configs in no time.Something like this would initiate a String[] @AttributeDefinition( name = "String[] Label", description = "String[] Config Example Des...

Views

79

Likes

2

Replies

0
Re: How to maintain the memory cache in AEM .?
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@vmadala,A standard way to serve a secure and fast website experience will be to use the standard AEM dispatcher Apache web server module. Checkout this in-depth video to understand exactly what AEM dispatcher is, https://www.youtube.com/watch?v=i5dzqbpCwGk

Views

129

Likes

2

Replies

1
Re: How to include javascript on template properties?
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@mustafaaaga To ensure that your Javascript is running from an editable template (via page policies configuration), you must fulfil each of these steps.Make sure you have a valid client library that has been deployed into your AEM environment; this client library must have a client library category, for example: mycustom.client.library.oneHead into the edit mode for your editable template, and then from the top left navigation bar, select "Page Policies", now in the properties section, place in ...

Views

90

Likes

2

Replies

0
Re: [AEM6.5] Create a service which receives the path of...
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@tushaar_srivastava ,Assuming that your use will be used within the author environment, I would create a Sling Servlet that will accept "path". The servlet will utilise the Query Manager, JCR-SQL2. Once when the results are obtained, then the backend logic will transform the result object, which will then output the formatted JSON.// just a brief example below... private static final String JCR_SQL_QUERY = "SELECT * FROM [dam:AssetContent] AS nodes WHERE ISDESCENDANTNODE ([{my_query}]"; ... @Ove...

Views

182

Likes

2

Replies

1
Re: How to get resource resolver from session in Standalo...
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@sanjanas3080058,Can you let me know the use-case of why you might need the resource resolver from a non-AEM application? Because the javax.jcr.Session should allow CRUD (Create Read Update Delete) in your Java Content Repository.Documentation here - https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/access-jcr.html?lang=en

Views

146

Likes

3

Replies

1
Re: Best way to design header and footer in editable temp...
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
Option 2 – Place header and footer components in experience fragment and use it in Initial content.A recent implementation I've done is place the experience fragment into the editable template as a locked component.

Views

107

Like

1

Replies

0
Re: How to include clientlibs in experience fragment in AEM?
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@Anderson_Hamer,An experience fragment, XF, can be created with the same editable template structure. This means that when you are on your target XF page, clicking on the drop-down menu from the top left author header nav, you should see the "edit the template" button. From the template editor, you can edit the policies, and include your client libraries, like you should for a page.

Views

86

Likes

4

Replies

0
Re: using HTL + Handlebars + displaying $ sign
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@jayv25585659,Have you tried passing the dollar integer value into a handlebars helper?// something like below.;; Handlebars.registerHelper('currency', function(amount, options) { if (typeof(amount) === 'string') { amount = options.contexts[0].get(amount); } var rounded = Math.round(amount * 100); var dec = rounded % 100; var whole = rounded / 100 - dec / 100; var decStr = '' + dec; return '$' + whole + '.' + decStr + ( decStr.length < 2 ? '0' : ''); }); var t = Handlebars.compile("{{currency am...

Views

75

Likes

2

Replies

0
Re: Converting JSTL core tags into Sightly
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@lisa_burrow,When you are converting JSP Components to Sightly Components, you will discover that the JSP script has coupled view and backend logic. One of the ways that you can determine backend code when the JSP code calling a function with params, for example, "${fn:startsWith(properties.leftURL, '/content')==true}; keeping in mind, the JSP blocks of code with some computation logic, you can place this into the Sling Model backend.TheView logic contains your HTML and block elements as such; ...

Views

99

Likes

2

Replies

1
Re: Not able to pull the page name from dataLayer object....
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@samsundar23,You might want to validate and upgrade your data layer Javascript block, which should be serverside rendered on your basepage.html. Maybe you need to hide your organisation's website from your screenshots, for privacy reasons, but from looking at your organisation's website, you have something w/ datalayers going on here. The data layer here looks like it is being generated by sightly or JSP view logic, located at the bottom of the page. You might be missing this information is beca...

Views

101

Like

1

Replies

0
Re: Alternative of deprecated SlingSettingsService
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@ibishika,it looks like the solution is still in the planning phase: https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2476

Views

114

Like

1

Replies

0
Re: Source code to troubleshoot 302 redirect issue
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
Can you check your etc.mappings, maybe there might be a rule in there was redirects an asset if the asset mime Type is unknown to your configurations.

Views

206

Likes

0

Replies

0
Re: Source code to troubleshoot 302 redirect issue
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@jkpanera,From the 302 redirect, it looks like an issue with your apache web server dispatcher configuration. Did allow .svg files from being reached?

Views

252

Like

1

Replies

2
Re: How to invoke a dispatcher script from AEM Author
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@amrithanivas ,You can try,With an Apache Web Server, You can write a CGI script to intercept your web requests, next from the CGI script, you can call the .sh file. I don't think there are too many guides out there because this solution seems a bit out of the norm.

Views

95

Like

1

Replies

0
Re: dumb question: how to create a page with custom HTML
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
Stick to components for your basic testing requirements. In the scenario of finding your basepage.html, you must first look at your cq:Page/jcr:content node, find the sling:resourceType, and then sling:superResourceType.

Views

110

Likes

0

Replies

0
Re: dumb question: how to create a page with custom HTML
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@TB3dock,For your use case, custom HTML for local development environment & test purposes, I would suggest you create a simple component. Next, ensure your component is within a component group, so you can drag and drop the component on the page. Once when you have created your simple AEM component, you can go ahead and edit your existing page. Drag the component into the page. If your available component is not listed in the components sidebar, then you might want to double-check if your templa...

Views

130

Likes

3

Replies

2
Re: javax.jcr.InvalidItemStateException when when I remov...
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@aliaksandr_hvozdzeu,Is there. custom cq:listener or some sort of JavaScript running on the author, wherever a component have been removed from the page?

Views

119

Like

1

Replies

1
Re: calculate request timeout in js
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@keerthana_hn The XMLHttpRequest.timeout property is an unsigned long representing the number of milliseconds a request can take before automatically being terminated. The default value is 0, which means there is NO_TIMEOUT. Also, while your computer request for a download, and the server responds with downloadable content, then you wouldn't get a timeout from your AJAX request. Remember, the purpose of a timeout is to prevent a device from endlessly waiting for a sever to respond. However, if y...

Views

85

Like

1

Replies

0
Re: iframe scroll issue
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@surajitk1518267,if the AEM out of the box iframe component is causing too many issues, I suggest that you would create your own iframe component. Example code I found online looks helpful, https://stackoverflow.com/questions/39398787/stop-scrolling-on-zoomable-iframe

Views

77

Like

1

Replies

0
Re: Workflow restriction based on pages which user is ope...
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@uniqvaibhav,You can easily create a new user group with the restriction "READ" permission, to that particular node. Any member of that user group will not be able to see the workflow.

Views

83

Like

1

Replies

0
Re: How to increase recursion depth when requesting JSON...
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
Try to increase the "JSON Max results" to a larger value from /system/console/configMgr/org.apache.sling.servlets.get.DefaultGetServlet

Views

94

Likes

3

Replies

0
Re: Merging sites and restructuring page titles for SEO
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@jrbax I have done something like this in the past where the is Page Name | Folder | Company Name, or a combination that is similar; using sling models, you can reference data from your AEM resources and output the correct format for your title-string. For the combination forPage Name | Folder | Company Name, It really depends on what your SEO specialist recommends.

Views

75

Like

1

Replies

0
Re: Unable to login localhost with admin credentials
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@Naveen1257,You might want to try to reset your admin password:https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-16565.html?lang=en https://www.appeon.com/developers/get-help/knowledgebase/how-reset-password-resolve-aem-login-failure-due-incorrect-password.html

Views

95

Like

1

Replies

0
Re: In author unable to open the page properties and gett...
Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
- Adobe Experience Manager
@Naveen1257,let's try to find out your problem.Can you please share with us the:1. Error from the browser's developer tools?2. Error from error.log3. Error from Custom.log if anyMost likely it might be a case of a referencing resource that cannot be found, but let's analyse this situation. If you wish to understand why I am asking for extra details from the list above, check out this blog, Basic Steps to Debug an Error in AEM, https://sourcedcode.com/blog/aem/development/basic-steps-to-debug-an-...

Views

96

Like

1

Replies

0