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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

BrianKasingli
BrianKasingli
Online

Badges

Badges
40

Accepted Solutions

Accepted Solutions
293

Likes Received

Likes Received
864

Posts

Posts
732

Discussions

Discussions
48

Questions

Questions
683

Ideas

Ideas
0

Blog Posts

Blog Posts
3
Top badges earned by BrianKasingli
Customize the badges you want to showcase on your profile
Re: Meaning of the requestAttribute? - Adobe Experience Manager 13-07-2022
is this code working? I tried it, does not work. 

Views

140

Like

1

Replies

3
Re: Monitoring of live Website - Adobe Experience Manager 10-07-2022
You might want to set up something called health checks on your website. Health checks are generally operated with an external monitoring service or container orchestrator to check the status of an app, such as getting a 200OK response from a website URL. Check with your dev opts team to get this setup.

Views

119

Like

1

Replies

0
Re: Facing special characters on datasource node rendering in place of "-" - Adobe Experience Manager 10-07-2022
Making sure you are encoding your strings as UTF-8 in Java should solve the trick. Encoding With Commons-Codec commons-codec commons-codec 1.14 String rawString = "Welcome to Progress - Image Film"; byte[] bytes = StringUtils.getBytesUtf8(rawString); String utf8EncodedString = StringUtils.newStringUtf8(bytes);What is UTF-8? UTF-8 is a variable-width character encoding used for electronic communication. Defined by the Unicode Standard, the name is derived from Unicode Transformation Format – 8-...

Views

115

Likes

2

Replies

0
Re: Getting error when adding components in parsys - Adobe Experience Manager 10-07-2022
Can you check if you have the correct user permissions?

Views

89

Like

1

Replies

0
Re: Meaning of the requestAttribute? - Adobe Experience Manager 10-07-2022
From what I can see, you are calling an AEM Component, and passing the requestAttributes parameter to your Sling Model backend. If you are using Sling Model, from the backend, to capture the requestAttribute will be: @RequestAttribute private String href;If you are using WCMUsePojo, from the backend, to capture the requestAttribute will be:get("href", String.class); You can see how to pass data from Sightly to Sling ModelHow to Pass Data Parameters to Sling Modal from Sightly HTL Component You c...

Views

172

Likes

3

Replies

5
Re: Best approach to design Header using XF and core Navigation Components - Adobe Experience Manager 10-07-2022
Hi, I have created enterprise-scaled White Label websites in the past, and for each "BRAND", it's recommended that they have their own editable templates or you'll be over-engineering.This allows each "BRAND" to maintain its own templates with its own user permissions. This approach worked really well for me. Another tip is to create experience fragment folders with names with the "BRAND". This will really support permissions as well.

Views

152

Likes

3

Replies

0
Re: In AEM, can you call a service from a WcmUsePojo using annotations ? - Adobe Experience Manager 06-07-2022
Try this MyConfigService service = getSlingScriptHelper().getService(MyConfigService.class);

Views

139

Likes

4

Replies

1
Re: Call a component only when it's JS is rendered - Adobe Experience Manager 10-06-2022
Yup, this is fairly simple to implement. Since yo said you never want to render HTML (not even display:none), and only render HTML elements to the DOM after the request is a success, here, you can try my approach below:Here's what I would do.Take your target HTML elements that you have in your sightly, and wrap them around with the tag. Using JavaScript templating literals, store it into a JavaScript variable name window.example. Include an HTML-id tag on the component, so that you know where to JavaScript renders HTML elements. In your button code, after when the Ajax returns success, you can use the global JavaScript variable window.example to inject HTML into the DOM.I actually took the time to write you the exact scripts you need. To test this, you have two options:Option A: just find any AEM component, replace the Sightly HTL and proceed; push code to AEM and test the pageOption B: create a new component and include all the code that I have provided into the Sightly HTL; push code to AEM and test the pageHow this works. You click on the button on the screen, and after 500 milliseconds, you should be able to see the component's code, JavaScript injected into the dom. <!--/* The component to inject HTML into */--> <div id="cmp-badge"></div> <!--/* The button that you speak of */--> <button id="example-button">Click Me</button> <!--/* inline JavaScript Block */--> <script> // Using Sightly HTL, build the HTML you want to inject into the cmp-badge element window.example = ` <div class="cmp-badge"> <h1>The page name is: ${currentPage.path @ context='unsafe'}</h1> </div> `; // add event listener to the example-button document.getElementById("example-button").addEventListener("click", function() { // some fake API being called and returns success after 500 milliseconds setTimeout(function() { // add Sightly HTL into the cmp-badge element document.getElementById("cmp-badge").innerHTML += window.example; }, 500); });

Views

89

Likes

2

Replies

0
Re: AEM Inline Editor adds "span" tag to text with inline styles when removing a line break - Adobe Experience Manager 09-06-2022
Like removing the P tag, you can also remove the Span tag. https://sourcedcode.com/blog/aem/aem-richtext-remove-p-tag-removesingleparagraphcontainer-for-touch-ui

Views

88

Likes

2

Replies

0
Re: SDI ESI vs ESI tags - Adobe Experience Manager 09-06-2022
@aemuser29,When you use the SDI bundle from AEM, with proper configuration (in particular the SSI with apache config) your apache web request to the publish will return an HTML document, with target resource types being transformed to return lines of code that look like this, Similarly, when you have enabled ESI tags enabled, your apache web request to the publish will return an HTML document, with target resource types being transformed to return lines of code that look like this, Not only do...

Views

43

Likes

2

Replies

0